poetry install
poetry run pre-commit install
poetry run pytest
usage: app.py [-h] [--padstart seconds] [--padend seconds]
video_source subtitle_source dest
Create an anki deck given media and subtitles.
positional arguments:
video_source Video file (.mp4, .mkv)
subtitle_source Subtitle file (.vtt, .src, etc)
dest Destination for files.
optional arguments:
-h, --help show this help message and exit
--padstart seconds Add more time to the start of the scene from subtitle
--padend seconds Add more time to the end of the scene from subtitle
poetry run mediatoanki mrrobot.mkv mrrobot.vtt decks
O deck gerado está em formato .apkg.
$ anki deck.apkg
Clique no botão File > Import e selecione o arquivo .apkg.
Após o deck ser importado os arquivos armazenados na pasta media
devem ser enviados para a pasta collection.media
do usuário do anki. Caso contrário
os flash-cards ficaram sem as imagens e aúdios.