kelciour / movies2anki

Convert movies with subtitles to watch them with Anki. Inspired by subs2srs
GNU Affero General Public License v3.0
302 stars 28 forks source link

How to import youtube automatic captioning #18

Closed hxse closed 3 years ago

hxse commented 3 years ago

Unable to split the subtitles properly when i import youtube automatic captioning. But Manual uploading of subtitles is normal. Example: https://www.youtube.com/watch?v=En8Tz2RzubE Script for downloading subtitles: https://greasyfork.org/en/scripts/5368-youtube-subtitle-downloader-v28

kelciour commented 3 years ago

Thank you for the issue and how to reproduce it. It should be fixed now. Use Tools > Add-ons > Check for Updates to update the add-on and restart Anki.


Currently, subtitles can be imported in 3 different ways.

  1. (exact mode) Set "Get between Phrases to 0.0" and uncheck the checkbox. The add-on will generate as many cards ("phrases") as many subtitle lines in the subtitle file.

изображение

2 (sentence mode) Set "Get between Phrases to 0.0" and check the checkbox. The add-on will try to join subtitle lines into sentences, for example, by joining two subtitles if the first one ends with ", ". The maximum duration of a sentence is set to 15 seconds, if "Split Long Phrases" option is set to 0 or not enabled.

изображение

  1. (phrase mode) Set "Get between Phrases" to 0.25, 0,75, 1,25, ... and maybe use "Split Long Phrases" too. The add-on will join subtitle lines into sentences, then into phrases and try to split phrases that were too long.

изображение