:warning: If AnkiConnect does not work add "*" to your AnkiConnect configuration in Anki -> Tools -> Add-ons -> AnkiConnect -> Config.
"webCorsOriginList": [
"*",
"http://localhost"
]
This extension allows to download the transcript of a YouTube video to a csv that can be imported into Anki or directly send the cards to Anki using AnkiConnect, allowing to use the original audio/video of the current sentence and without having to download the original media.
Install the extension for your prefered browser
Install AnkiConnect to add the cards directly to a deck, once the plugin is installed, keep Anki open and press the Send
button from the extension.
There is no need for the following steps.
In Anki, create a new note. Tools -> Manage Note Types
Add a new card with this fields
Edit the card fields of the new note created with the correspondent code.
Front Template
{{title}}
<br>
<span>{{prevText}}</span>
<br>
{{text}}
<br>
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/{{id}}?start={{startSeconds}}&end={{endSeconds}}&autoplay=1"
frameborder=0
autoplay=1
/>
<br>
<span>{{time}} - {{nextTime}}</span>
<br>
<span>{{nextText}}</span>
Styling
.card {
font-family: futura-pt,sans-serif,sans-serif;
font-size: 20px;
text-align: center;
color: black;
background-color: #e9e9e9;
}
span {
font-size: 0.9rem;
color: #3c3c3c;
}
Back Template
{{FrontSide}}
<hr id=answer>
Now after exporting the cards using by using the extension icon, is possible to import the new cards using the new note type.
Please be sure to open the transcript of the video before pressing the export button, since the transcript is not created until the user opens it, this step is required.
File -> Import