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

Subtitle error #10542

Closed
Dohnerd opened this issue May 2, 2022 · 10 comments
Closed

Subtitle error #10542

Dohnerd opened this issue May 2, 2022 · 10 comments

Comments

@Dohnerd
Copy link

Dohnerd commented May 2, 2022

Im getting this quite some often:

2022-05-02 14:12:26 WARNING  FINDSUBTITLES :: [e4870f8] Unexpected error. Provider addic7ed
Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/babelfish/converters/__init__.py", line 168, in reverse
    return self.from_symbol[code]
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/babelfish/converters/__init__.py", line 51, in __getitem__
    return self._store[key.lower()][1]
KeyError: 'french (canadian)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/subliminal/core.py", line 115, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/medusa/subtitle_providers/addic7ed.py", line 285, in list_subtitles
    subtitles = [s for s in self.query(show_id, title, video.season, video.year)
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/medusa/subtitle_providers/addic7ed.py", line 257, in query
    language = Language.fromaddic7ed(cells[3].text)
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/babelfish/language.py", line 110, in fromcode
    return cls(*language_converters[converter].reverse(code))
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/subliminal/converters/addic7ed.py", line 32, in reverse
    return self.name_converter.reverse(addic7ed)
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/babelfish/converters/__init__.py", line 170, in reverse
    raise LanguageReverseError(code)
babelfish.exceptions.LanguageReverseError: 'French (Canadian)'

I dont even use/search for french ?

@p0psicles
Copy link
Contributor

p0psicles commented May 4, 2022

Any way i can reproduce this?
A specific show this error is thrown?
Any debug log?
Also please use the template to create the issue.

@Dohnerd
Copy link
Author

Dohnerd commented May 4, 2022

I don't know, I get it often, always from addic7ed.

2022-05-04 07:18:58 WARNING  FINDSUBTITLES :: [e4870f8] Unexpected error. Provider addic7ed'

This is my latest.

where is the debug log located?

Which template is that, I just pushed new issue and wrote there ?

@p0psicles
Copy link
Contributor

Enable debug logging in config - general - Logs
Then restart medusa.
if you click on New Issue - bug report. You'll get a template that you need to fill in.
image

@Dohnerd
Copy link
Author

Dohnerd commented May 4, 2022

Already enabled it, but where do i find it :)

@p0psicles
Copy link
Contributor

Medusa has a Logs folder in the program folder.
There you'll find application.log as older retentioned application.log.x files.

@Dohnerd
Copy link
Author

Dohnerd commented May 4, 2022

Cool, found this in log for the error:

2022-05-04 07:18:37 INFO     FINDSUBTITLES :: [e4870f8] Getting the page of show id 1175, season 11
2022-05-04 07:18:39 DEBUG    EPISODEUPDATER :: [e4870f8] Finished updating network timezones
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Found subtitle <Addic7edSubtitle 'updated/1/168305/0' [en]>
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Ignoring subtitle with status 23.96% Completed
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Found subtitle <Addic7edSubtitle 'updated/1/168305/1' [en]>
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Found subtitle <Addic7edSubtitle 'updated/10/168305/2' [pt-BR]>
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Found subtitle <Addic7edSubtitle 'updated/16/168305/3' [tr]>
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Found subtitle <Addic7edSubtitle 'updated/7/168305/4' [it]>
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Found subtitle <Addic7edSubtitle 'updated/17/168305/5' [nl]>
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Found subtitle <Addic7edSubtitle 'updated/8/168305/6' [fr]>
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Found subtitle <Addic7edSubtitle 'updated/8/168305/7' [fr]>
2022-05-04 07:18:58 DEBUG    FINDSUBTITLES :: [e4870f8] Found subtitle <Addic7edSubtitle 'updated/8/168305/8' [fr]>
2022-05-04 07:18:58 WARNING  FINDSUBTITLES :: [e4870f8] Unexpected error. Provider addic7ed
Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/babelfish/converters/__init__.py", line 168, in reverse
    return self.from_symbol[code]
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/babelfish/converters/__init__.py", line 51, in __getitem__
    return self._store[key.lower()][1]
KeyError: 'french (canadian)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/subliminal/core.py", line 115, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/medusa/subtitle_providers/addic7ed.py", line 285, in list_subtitles
    subtitles = [s for s in self.query(show_id, title, video.season, video.year)
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/medusa/subtitle_providers/addic7ed.py", line 257, in query
    language = Language.fromaddic7ed(cells[3].text)
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/babelfish/language.py", line 110, in fromcode
    return cls(*language_converters[converter].reverse(code))
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/subliminal/converters/addic7ed.py", line 32, in reverse
    return self.name_converter.reverse(addic7ed)
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/babelfish/converters/__init__.py", line 170, in reverse
    raise LanguageReverseError(code)
babelfish.exceptions.LanguageReverseError: 'French (Canadian)'
2022-05-04 07:18:59 DEBUG    FINDSUBTITLES :: [e4870f8] Discarding provider addic7ed
2022-05-04 07:18:59 DEBUG    FINDSUBTITLES :: [e4870f8] Could not search in addic7ed provider. Discarding for now
2022-05-04 07:18:59 DEBUG    FINDSUBTITLES :: [e4870f8] Could not search in tvsubtitles provider. Discarding for now

@p0psicles
Copy link
Contributor

I suspect this is for the show the walking dead.
I'll try to reproduce it. which languages do you have enabled?

@Dohnerd
Copy link
Author

Dohnerd commented May 7, 2022

Danish and English.

@p0psicles
Copy link
Contributor

I'm not going to spend a lot of time on this. Yesterday I tried to reproduce. But I only got timeouts from addic7ed. We added a custom addic7ed provider, cause someone found a workaround for the logon. But it's really a hit and miss solution. Like when it works, nice.

@mmhere
Copy link

mmhere commented May 9, 2022

I suggest that this is a dupe of #10344 which was just re-opened with a suggestion on how to improve the situation.

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

3 participants