Skip to content

Instantly share code, notes, and snippets.

@linguisticmind
Last active July 19, 2024 00:13
Show Gist options
  • Select an option

  • Save linguisticmind/f049ad25a9316dafbed75d72418de8f3 to your computer and use it in GitHub Desktop.

Select an option

Save linguisticmind/f049ad25a9316dafbed75d72418de8f3 to your computer and use it in GitHub Desktop.
movies2anki_tweaks.md | "movies2anki tweaks" (https://youtu.be/YOh_s6LBqto) | Linguistic Mind

movies2anki tweaks

Video tutorial: https://www.youtube.com/watch?v=YOh_s6LBqto
movies2anki on AnkiWeb: https://ankiweb.net/shared/info/939347702

movies2anki id: 939347702

Setting an mpv profile

Add line
args += ["--profile=movies2anki"]
before line
cmd = [mpv_executable] + args + [fullpath] (around line 239)
in player.py file.

Video demonstration

Changing 'Generate Video Cards' shortcut

Change line
action.setShortcut(QKeySequence("Ctrl+M")) (around line 2016)
to
action.setShortcut(QKeySequence("Ctrl+Alt+M")) (insert desired key combination)
in movies2anki.py file.

Video demonstration

Changing model name

Search the entire code of movies2anki for
movies2anki (add-on),
and replace it with Main (or some other name you prefer).

Video demonstration

Getting the note types whose name starts with Main to play as well

Search the entire code of movies2anki for
== "Main" (There should be a space before the ==! No way to display it on GitHub),
and replace it with
.startswith("Main") (substitute a different name if you prefer).

Video demonstration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment