Skip to content
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

IndexError: list index out of range #6

Open
momoruimh opened this issue Jan 25, 2024 · 0 comments
Open

IndexError: list index out of range #6

momoruimh opened this issue Jan 25, 2024 · 0 comments

Comments

@momoruimh
Copy link

C:\Users\888\miniconda3\python.exe "D:\Python Project\SubtitleTranslator\main.py" 
Traceback (most recent call last):
  File "D:\Python Project\SubtitleTranslator\main.py", line 24, in <module>
    translateSubtitles(fileList)
  File "D:\Python Project\SubtitleTranslator\main.py", line 18, in translateSubtitles
    translate_and_compose(f, of, 'en', 'zh-CN',encoding='gb18030')
  File "D:\Python Project\SubtitleTranslator\utils\utils.py", line 112, in translate_and_compose
    translated_list = translate_srt(subtitle, src_lang, target_lang, space=space)
  File "D:\Python Project\SubtitleTranslator\utils\utils.py", line 70, in translate_srt
    dialog_list = sen_list2dialog_list(translated_sen_list, mass_list, space, cn=True)
  File "D:\Python Project\SubtitleTranslator\utils\util_srt.py", line 165, in sen_list2dialog_list
    origin_len = record[-1][1]
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant