I get an error while try to create a new deck using the watch foreign language movie with anki add on

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-05-24 16:50:05

Caught exception:
Traceback (most recent call last):
File “C:\Users\dovuc\AppData\Roaming\Anki2\addons21\939347702\movies2anki.py”, line 1571, in start
self.startSingleMode()
File “C:\Users\dovuc\AppData\Roaming\Anki2\addons21\939347702\movies2anki.py”, line 1684, in startSingleMode
self.model.create_subtitles()
File “C:\Users\dovuc\AppData\Roaming\Anki2\addons21\939347702\movies2anki.py”, line 961, in create_subtitles
en_subs = self.load_subtitle(self.en_srt, self.is_ignore_sdh_subtitle, self.join_lines_separator, self.join_sentences_separator, self.is_gap_phrases)
File “C:\Users\dovuc\AppData\Roaming\Anki2\addons21\939347702\movies2anki.py”, line 742, in load_subtitle
subs2 = format_subtitles(subs2, is_ignore_SDH, join_lines_separator, join_sentences_separator, is_gap_phrases)
File “C:\Users\dovuc\AppData\Roaming\Anki2\addons21\939347702\movies2anki.py”, line 192, in format_subtitles
if sub_content[-1] not in [u".", u"?", u"!", u"?", u"!", u"♪", ‘"’] and not sub_line.startswith(’- '):
IndexError: string index out of range

You can report the issue on the add-on page (Watch Foreign Language Movies with Anki - AnkiWeb) or maybe wait for a reply from the author (@kelciour) here.

2 Likes

Thank you for the report. It’ll take some time to update the add-on. As a possible workaround, try to upload your subtitles (probably in .ass format) to https://www.nikse.dk/subtitleedit/online and download as .srt (SubRip).

2 Likes

thank you