mpv-cards allows you to automatically create and update Anki cards with minimal setup required.
- update multiple cards at once (i.e multiple unknown words for a specific set of subtitles)
- fluid card creation for multiple subtitle lines
- Install dependencies with
npm install
. Have AnkiConnect installed in Anki. This also requiresffmpeg
. - Change options as necessary in
src/main.ts
- Build src files using
npm run build
- Copy the distribution file into mpv script directory. Helper script
install.sh
is provided (Run usingnpm run dist
).
- Use yomichan or other software to add a card.
g
in mpv prompts the user to select between 1-9 lines; press the appropriate number on keyboard.Alt+g
in mpv prompts the user to select between 1-9 cards to update, then between 1-9 lines.
This tool does not grab subtitles that have not been seen yet. In other words, if you've only seen up ton subtitle #1 on mpv, pressing g
and selecting 3 will still only update the card with only subtitle #1's information. This is intended and I have not seen any significant downsides in everyday usage. I recommend binding keys to navigate subtitles in mpv in any case.
Currently I use this every day, but I'm the only user. If you happen to try it out and find bugs, feel more than free to open an issue or fix it yourself and send a PR!
- makeover the testing suite for more robost development. Currently not a great testing setup.
- better user experience [on-screen-messaging, error catching, etc]