subliminal icon indicating copy to clipboard operation
subliminal copied to clipboard

Problem using legendastv as provider

Open overmindbr opened this issue 3 years ago • 2 comments

I'm having issues running it with legendastv provider. It was installed using pip3, rarfile version 4.0. Also has unrar-free installed.

ERROR:subliminal.utils:Unexpected error. Provider legendastv
Traceback (most recent call last):
  File "/home/***/.local/lib/python3.7/site-packages/subliminal/core.py", line 115, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "/home/***/.local/lib/python3.7/site-packages/subliminal/core.py", line 66, in __getitem__
    provider = provider_manager[name].plugin(**self.provider_configs.get(name, {}))
  File "/home/***/.local/lib/python3.7/site-packages/subliminal/providers/legendastv.py", line 164, in __init__
    rarfile.custom_check([rarfile.UNRAR_TOOL], True)
AttributeError: module 'rarfile' has no attribute 'custom_check'

overmindbr avatar Oct 20 '20 13:10 overmindbr

works fine with rarfile 3.1.

overmindbr avatar Nov 03 '20 12:11 overmindbr

Replacing rarfile.custom_check([rarfile.UNRAR_TOOL], True) with rarfile.tool_setup() on "legendastv.py" solves this issue without losing functionality (when dealing with rarfile version 4.0). Just a suggestion.

eastmarch avatar Jun 02 '21 14:06 eastmarch