-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add videos by python Geanki #132
Comments
It seems to be broken because according to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good evening, does anyone have any suggestions or know how I could add videos via the geanki library in Python? I tried to create using the code below but the video does not appear. I’ve already tried using just {{PathVideo}}, the video loads with the MPV but the video has to be in the indicated path, I wanted the video to be already inside this file when exporting the .apkg file to send to other people.
`# Crie um modelo de carta
modelo_carta = genanki.Model(
1607392319,
'Modelo de Carta Simples',
fields=[
{'name': 'Frente'},
{'name': 'Verso'},
{'name': 'video'}
],
templates=[
{
'name': 'Carta Padrão',
'qfmt': '
{{Frente}}
',
'afmt': '
{{Verso}}
},
])
The text was updated successfully, but these errors were encountered: