morpheus65535 / bazarr

Bazarr is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements. You define your preferences by TV show or movie and Bazarr takes care of everything for you.
https://www.bazarr.media
GNU General Public License v3.0
2.85k stars 223 forks source link

AttributeError for opensubtitlescom #2545

Closed satozuki closed 4 months ago

satozuki commented 4 months ago

Describe the bug Not able to find any subtitles. opensubtitlescom always returns: AttributeError

To Reproduce Steps to reproduce the behavior:

  1. Manually search a subtitle
  2. Returns no subtitle founds

Expected behavior Subtitles to be found

Software (please complete the following information): Bazarr Version: 1.4.3 Package Version: v1.4.3-ls254 by linuxserver.io Operating System: Linux-4.4.302+-x86_64-with Python Version: 3.11.9

Additional context This is a fresh install and a new VIP account with opensubtitles.com.

My opensubtitlescom config.yaml :

opensubtitlescom:
  include_ai_translated: false
  password: '<a simple numeric password>'
  use_hash: true
  username: <username only>

LOG:

(7fbd4982bb38) :  INFO (core:700) - Using 1 threads for 1 providers ({'opensubtitlescom'})
2024-06-18 10:54:16,703 - subliminal_patch.core            (7fbd4982bb38) :  DEBUG (core:248) - Discarded providers: set() | New providers: {'opensubtitlescom'}
2024-06-18 10:54:16,703 - subliminal_patch.core            (7fbd4982bb38) :  DEBUG (core:250) - Updated discarded providers: set()
2024-06-18 10:54:16,704 - subliminal_patch.core            (7fbd4982bb38) :  DEBUG (core:254) - Removed providers: set()
2024-06-18 10:54:16,705 - subliminal_patch.core            (7fbd4982bb38) :  DEBUG (core:110) - No provider config updates
2024-06-18 10:54:16,705 - root                             (7fbd4982bb38) :  DEBUG (pool:103) - BAZARR pools update elapsed time: 63.29ms
2024-06-18 10:54:16,705 - root                             (7fbd4982bb38) :  DEBUG (manual:28) - BAZARR Manually searching subtitles for this file: /media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4
2024-06-18 10:54:16,714 - subliminal_patch.score           (7fbd4982bb38) :  DEBUG (score:65) - Hash value: 119 -> Rest sum: 120
2024-06-18 10:54:16,714 - subliminal_patch.score           (7fbd4982bb38) :  DEBUG (score:65) - Hash value: 359 -> Rest sum: 360
2024-06-18 10:54:16,714 - subliminal_patch.core            (7fbd4982bb38) :  DEBUG (core:110) - No provider config updates
2024-06-18 10:54:16,715 - subzero.video                    (7fbd4982bb38) :  DEBUG (video:60) - Parsing video: Casablanca (1942) [BluRay] [1080p] [YTS.AM].mp4, hints: {'title': 'Casablanca', 'type': 'movie'}
2024-06-18 10:54:16,716 - subliminal_patch.core            (7fbd4982bb38) :  INFO (core:832) - Determining basic video properties for 'Casablanca (1942) [BluRay] [1080p] [YTS.AM].mp4' in '/media/media/Movie/Casablanca (1943)'
2024-06-18 10:54:16,894 - subliminal_patch.core            (7fbd4982bb38) :  DEBUG (core:840) - GuessIt found: {
    "title": "Casablanca",
    "year": 1942,
    "source": "Blu-ray",
    "screen_size": "1080p",
    "release_group": "YTS.AM",
    "container": "mp4",
    "mimetype": "video/mp4",
    "type": "movie"
}
2024-06-18 10:54:16,894 - subliminal_patch.core            (7fbd4982bb38) :  DEBUG (core:856) - Size is 1726049621
2024-06-18 10:54:16,902 - subliminal_patch.core            (7fbd4982bb38) :  DEBUG (core:884) - Computed hashes {'opensubtitlescom': 'bd5b703cbfb4dcd8'}
2024-06-18 10:54:16,902 - root                             (7fbd4982bb38) :  DEBUG (utils:48) - Running refiner: database
2024-06-18 10:54:16,930 - root                             (7fbd4982bb38) :  DEBUG (utils:48) - Running refiner: ffprobe
2024-06-18 10:54:16,934 - root                             (7fbd4982bb38) :  DEBUG (ffprobe:40) - FFprobe found: {'path': '/media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4', 'duration': datetime.timedelta(seconds=6158, microseconds=154000), 'size': 1726049621, 'bit_rate': 2242294, 'container': 'mp4', 'video': [{'id': 0, 'language': <Language [und]>, 'duration': datetime.timedelta(seconds=6157, microseconds=192708), 'width': 1472, 'height': 1072, 'scan_type': 'Progressive', 'aspect_ratio': Decimal('1.373'), 'pixel_aspect_ratio': Decimal('1.0'), 'resolution': '1080p', 'frame_rate': Decimal('23.976'), 'bit_rate': 2149789, 'bit_depth': 8, 'codec': 'H.264', 'profile': 'High', 'default': True}], 'audio': [{'id': 1, 'language': <Language [und]>, 'duration': datetime.timedelta(seconds=6158, microseconds=154000), 'codec': 'AAC', 'profile': 'Low Complexity', 'channels_count': 2, 'channels': '2.0', 'bit_rate': 87005, 'sampling_rate': 48000, 'default': True}], 'provider': {'name': 'ffmpeg', 'version': {'/usr/bin/ffprobe': 'v6.1.1'}}}
2024-06-18 10:54:16,934 - root                             (7fbd4982bb38) :  DEBUG (utils:48) - Running refiner: arr_history
2024-06-18 10:54:16,935 - root                             (7fbd4982bb38) :  DEBUG (utils:48) - Running refiner: anidb
2024-06-18 10:54:16,935 - root                             (7fbd4982bb38) :  DEBUG (anidb:119) - Video is not an Anime TV series, skipping refinement for <Movie ['Casablanca', 1942]>
2024-06-18 10:54:16,935 - root                             (7fbd4982bb38) :  DEBUG (utils:51) - BAZARR is using these video object properties: {'name': '/media/media/Movie/Casablanca (1943)/Casablanca (1942) [BluRay] [1080p] [YTS.AM].mp4', 'source': 'Blu-ray', 'release_group': 'YTS.AM', 'resolution': '1080p', 'video_codec': 'H.264', 'audio_codec': 'AAC', 'imdb_id': 'tt0034583', 'hashes': {'opensubtitlescom': 'bd5b703cbfb4dcd8'}, 'size': 1726049621, 'subtitle_languages': set(), 'original_name': 'Casablanca (1943) Bluray-1080p.mp4', 'plexapi_metadata': {}, 'hints': {'title': 'Casablanca', 'type': 'movie', 'single_value': True}, 'audio_languages': {'und'}, 'external_subtitle_languages': set(), 'streaming_service': None, 'edition': None, 'original_path': '/media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4', 'other': None, 'info_url': None, 'series_anidb_series_id': (None,), 'series_anidb_episode_id': (None,), 'title': 'Casablanca', 'year': 1942, 'alternative_titles': ['Kasaburanka', 'Kasablanka', '北非諜影'], 'used_scene_name': True, 'radarrId': 667, 'fps': Decimal('23.976')}
2024-06-18 10:54:16,936 - subliminal_patch.core_persistent (7fbd4982bb38) :  INFO (core_persistent:21) - Listing subtitles for <Movie ['Casablanca', 1942]>
2024-06-18 10:54:16,936 - subliminal_patch.core            (7fbd3cc21b38) :  DEBUG (core:335) - Languages requested: {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-18 10:54:16,937 - subliminal_patch.core            (7fbd3cc21b38) :  DEBUG (core:192) - New set: 1688 items
2024-06-18 10:54:16,937 - subliminal_patch.core            (7fbd3cc21b38) :  DEBUG (core:170) - Nothing to translate found
2024-06-18 10:54:16,937 - subliminal_patch.core            (7fbd3cc21b38) :  INFO (core:365) - Listing subtitles with provider 'opensubtitlescom' and languages {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-18 10:54:16,937 - subliminal_patch.core            (7fbd3cc21b38) :  INFO (core:296) - Initializing provider opensubtitlescom
2024-06-18 10:54:16,961 - subliminal_patch.providers.opensubtitlescom (7fbd3cc21b38) :  DEBUG (opensubtitlescom:191) - No cached token, we'll try to login again.
2024-06-18 10:54:16,962 - urllib3.connectionpool           (7fbd3cc21b38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (1): api.opensubtitles.com:443
2024-06-18 10:54:19,139 - engineio.server                  (7fbd3db1db38) :  INFO (socket:76) - Px74J8edoUKaimVjAAAC: Sending packet PING data None
2024-06-18 10:54:19,155 - engineio.server                  (7fbd49619b38) :  INFO (socket:39) - Px74J8edoUKaimVjAAAC: Received packet PONG data 
2024-06-18 10:54:19,810 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7fbd3df70210>
2024-06-18 10:54:19,811 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-18 10:54:21,967 - retry.api                        (7fbd3cc21b38) :  WARNING (api:40) - HTTPSConnectionPool(host='api.opensubtitles.com', port=443): Max retries exceeded with url: /api/v1/login (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fbd3dfb2810>: Failed to resolve 'api.opensubtitles.com' ([Errno -3] Try again)")), retrying in 5 seconds...
2024-06-18 10:54:24,812 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7fbd3df832d0>
2024-06-18 10:54:24,812 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-18 10:54:26,969 - urllib3.connectionpool           (7fbd3cc21b38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (2): api.opensubtitles.com:443
2024-06-18 10:54:29,707 - SignalRCoreClient                (7fbd3d90bb38) :  DEBUG (websocket_transport:177) - Message received{"type":6}
2024-06-18 10:54:29,707 - SignalRCoreClient                (7fbd3d90bb38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-18 10:54:29,708 - SignalRCoreClient                (7fbd3d90bb38) :  DEBUG (json_hub_protocol:33) - {"type":6}
2024-06-18 10:54:29,814 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7fbd3df69e90>
2024-06-18 10:54:29,814 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-18 10:54:31,973 - retry.api                        (7fbd3cc21b38) :  WARNING (api:40) - HTTPSConnectionPool(host='api.opensubtitles.com', port=443): Max retries exceeded with url: /api/v1/login (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fbd3df6b4d0>: Failed to resolve 'api.opensubtitles.com' ([Errno -3] Try again)")), retrying in 5 seconds...
2024-06-18 10:54:34,816 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7fbd3df73c50>
2024-06-18 10:54:34,816 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-18 10:54:36,975 - urllib3.connectionpool           (7fbd3cc21b38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (3): api.opensubtitles.com:443
2024-06-18 10:54:39,817 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7fbd3df6b7d0>
2024-06-18 10:54:39,818 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-18 10:54:41,979 - subliminal_patch.core            (7fbd3cc21b38) :  ERROR (core:399) - Unexpected error in provider 'opensubtitlescom': Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ~~~~^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 298, in __getitem__
    provider.initialize()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 192, in initialize
    self.login()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 220, in login
    self.token = r.json()['token']
                 ^^^^^^
AttributeError: 'NoneType' object has no attribute 'json'
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ~~~~^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 298, in __getitem__
    provider.initialize()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 192, in initialize
    self.login()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 220, in login
    self.token = r.json()['token']
                 ^^^^^^
AttributeError: 'NoneType' object has no attribute 'json'
2024-06-18 10:54:42,033 - root                             (7fbd3cc21b38) :  INFO (get_providers:379) - Throttling opensubtitlescom for 10 minutes, until 24/06/18 11:04, because of: AttributeError. Exception info: "''NoneType' object has no attribute 'json'' ~ opensubtitlescom.py@220"
2024-06-18 10:54:42,034 - ga4mp.ga4mp                      (7fbd3cc21b38) :  INFO (ga4mp:183) - Sending POST to: https://www.google-analytics.com/mp/collect
2024-06-18 10:54:44,156 - engineio.server                  (7fbd3db1db38) :  INFO (socket:76) - Px74J8edoUKaimVjAAAC: Sending packet PING data None
2024-06-18 10:54:44,199 - engineio.server                  (7fbd48fe3b38) :  INFO (socket:39) - Px74J8edoUKaimVjAAAC: Received packet PONG data 
2024-06-18 10:54:44,707 - SignalRCoreClient                (7fbd3d90bb38) :  DEBUG (websocket_transport:177) - Message received{"type":6}
2024-06-18 10:54:44,708 - SignalRCoreClient                (7fbd3d90bb38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-18 10:54:44,708 - SignalRCoreClient                (7fbd3d90bb38) :  DEBUG (json_hub_protocol:33) - {"type":6}
2024-06-18 10:54:44,820 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7fbd3cc5dd50>
2024-06-18 10:54:44,820 - SignalRCoreClient                (7fbd3df41b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-18 10:54:47,079 - root                             (7fbd3cc21b38) :  DEBUG (analytics:80) - BAZARR unable to track event.
2024-06-18 10:54:47,083 - socketio.server                  (7fbd3cc21b38) :  INFO (server:161) - emitting event "data" to all [/]
2024-06-18 10:54:47,084 - subliminal_patch.core            (7fbd4982bb38) :  INFO (core:734) - Discarding provider opensubtitlescom
2024-06-18 10:54:47,084 - subliminal_patch.core_persistent (7fbd4982bb38) :  INFO (core_persistent:26) - Found 0 subtitle(s)
2024-06-18 10:54:47,086 - root                             (7fbd4982bb38) :  DEBUG (manual:134) - BAZARR 0 Subtitles have been found for this file: /media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4
2024-06-18 10:54:47,087 - root                             (7fbd4982bb38) :  DEBUG (manual:135) - BAZARR Ended searching Subtitles for this file: /media/media/Movie/Casablanca (1943)/Casablanca (1943)
morpheus65535 commented 4 months ago

Although it should be catch properly, it means that there's been a connection issue with the provider that didn't returned a JSON payload on while logging in to get a valid token.

I'll fix that unhandled exception but it wont change the result, either the provider is in error or you account is. If it remains, contact the provider.

morpheus65535 commented 4 months ago

Should be properly handled in upcoming beta.

satozuki commented 4 months ago

@morpheus65535 First of all I would like to tank you for your work and fast answer.

I've updated to the development version: Bazarr Version 1.4.4-beta.9 Package Version v1.4.4-beta.9-ls605 by linuxserver.io Operating System Linux-4.4.302+-x86_64-with Python Version 3.12.3

Now the logs are showing the following:

2024-06-20 10:00:50,898 - subliminal_patch.core            (7f0af2371b38) :  INFO (core:700) - Using 1 threads for 1 providers ({'opensubtitlescom'})
2024-06-20 10:00:50,929 - subliminal_patch.core            (7f0af2371b38) :  DEBUG (core:248) - Discarded providers: set() | New providers: {'opensubtitlescom'}
2024-06-20 10:00:50,929 - subliminal_patch.core            (7f0af2371b38) :  DEBUG (core:250) - Updated discarded providers: set()
2024-06-20 10:00:50,929 - subliminal_patch.core            (7f0af2371b38) :  DEBUG (core:254) - Removed providers: set()
2024-06-20 10:00:50,929 - subliminal_patch.core            (7f0af2371b38) :  DEBUG (core:110) - No provider config updates
2024-06-20 10:00:50,930 - root                             (7f0af2371b38) :  DEBUG (pool:103) - BAZARR pools update elapsed time: 66.82ms
2024-06-20 10:00:50,930 - root                             (7f0af2371b38) :  DEBUG (manual:28) - BAZARR Manually searching subtitles for this file: /media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4
2024-06-20 10:00:50,939 - subliminal_patch.score           (7f0af2371b38) :  DEBUG (score:65) - Hash value: 119 -> Rest sum: 120
2024-06-20 10:00:50,939 - subliminal_patch.score           (7f0af2371b38) :  DEBUG (score:65) - Hash value: 359 -> Rest sum: 360
2024-06-20 10:00:50,939 - subliminal_patch.core            (7f0af2371b38) :  DEBUG (core:110) - No provider config updates
2024-06-20 10:00:50,940 - subzero.video                    (7f0af2371b38) :  DEBUG (video:60) - Parsing video: Casablanca (1942) [BluRay] [1080p] [YTS.AM].mp4, hints: {'title': 'Casablanca', 'type': 'movie'}
2024-06-20 10:00:50,940 - subliminal_patch.core            (7f0af2371b38) :  INFO (core:832) - Determining basic video properties for 'Casablanca (1942) [BluRay] [1080p] [YTS.AM].mp4' in '/media/media/Movie/Casablanca (1943)'
2024-06-20 10:00:50,966 - subliminal_patch.core            (7f0af2371b38) :  DEBUG (core:840) - GuessIt found: {
    "title": "Casablanca",
    "year": 1942,
    "source": "Blu-ray",
    "screen_size": "1080p",
    "release_group": "YTS.AM",
    "container": "mp4",
    "mimetype": "video/mp4",
    "type": "movie"
}
2024-06-20 10:00:50,967 - subliminal_patch.core            (7f0af2371b38) :  DEBUG (core:856) - Size is 1726049621
2024-06-20 10:00:50,977 - subliminal_patch.core            (7f0af2371b38) :  DEBUG (core:884) - Computed hashes {'opensubtitlescom': 'bd5b703cbfb4dcd8'}
2024-06-20 10:00:50,977 - root                             (7f0af2371b38) :  DEBUG (utils:48) - Running refiner: database
2024-06-20 10:00:51,005 - root                             (7f0af2371b38) :  DEBUG (utils:48) - Running refiner: ffprobe
2024-06-20 10:00:51,010 - root                             (7f0af2371b38) :  DEBUG (ffprobe:40) - FFprobe found: {'path': '/media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4', 'duration': datetime.timedelta(seconds=6158, microseconds=154000), 'size': 1726049621, 'bit_rate': 2242294, 'container': 'mp4', 'video': [{'id': 0, 'language': <Language [und]>, 'duration': datetime.timedelta(seconds=6157, microseconds=192708), 'width': 1472, 'height': 1072, 'scan_type': 'Progressive', 'aspect_ratio': Decimal('1.373'), 'pixel_aspect_ratio': Decimal('1.0'), 'resolution': '1080p', 'frame_rate': Decimal('23.976'), 'bit_rate': 2149789, 'bit_depth': 8, 'codec': 'H.264', 'profile': 'High', 'default': True}], 'audio': [{'id': 1, 'language': <Language [und]>, 'duration': datetime.timedelta(seconds=6158, microseconds=154000), 'codec': 'AAC', 'profile': 'Low Complexity', 'channels_count': 2, 'channels': '2.0', 'bit_rate': 87005, 'sampling_rate': 48000, 'default': True}], 'provider': {'name': 'ffmpeg', 'version': {'/usr/bin/ffprobe': 'v6.1.1'}}}
2024-06-20 10:00:51,010 - root                             (7f0af2371b38) :  DEBUG (utils:48) - Running refiner: arr_history
2024-06-20 10:00:51,012 - root                             (7f0af2371b38) :  DEBUG (utils:48) - Running refiner: anidb
2024-06-20 10:00:51,012 - root                             (7f0af2371b38) :  DEBUG (anidb:119) - Video is not an Anime TV series, skipping refinement for <Movie ['Casablanca', 1942]>
2024-06-20 10:00:51,012 - root                             (7f0af2371b38) :  DEBUG (utils:51) - BAZARR is using these video object properties: {'name': '/media/media/Movie/Casablanca (1943)/Casablanca (1942) [BluRay] [1080p] [YTS.AM].mp4', 'source': 'Blu-ray', 'release_group': 'YTS.AM', 'resolution': '1080p', 'video_codec': 'H.264', 'audio_codec': 'AAC', 'imdb_id': 'tt0034583', 'hashes': {'opensubtitlescom': 'bd5b703cbfb4dcd8'}, 'size': 1726049621, 'subtitle_languages': set(), 'original_name': 'Casablanca (1943) Bluray-1080p.mp4', 'plexapi_metadata': {}, 'hints': {'title': 'Casablanca', 'type': 'movie', 'single_value': True}, 'audio_languages': {'und'}, 'external_subtitle_languages': set(), 'streaming_service': None, 'edition': None, 'original_path': '/media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4', 'other': None, 'info_url': None, 'series_anidb_series_id': (None,), 'series_anidb_episode_id': (None,), 'title': 'Casablanca', 'year': 1942, 'alternative_titles': ['Kasaburanka', 'Kasablanka', '北非諜影'], 'used_scene_name': True, 'radarrId': 667, 'fps': Decimal('23.976')}
2024-06-20 10:00:51,012 - subliminal_patch.core_persistent (7f0af2371b38) :  INFO (core_persistent:21) - Listing subtitles for <Movie ['Casablanca', 1942]>
2024-06-20 10:00:51,013 - subliminal_patch.core            (7f0ae72e1b38) :  DEBUG (core:335) - Languages requested: {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-20 10:00:51,013 - subliminal_patch.core            (7f0ae72e1b38) :  DEBUG (core:192) - New set: 1688 items
2024-06-20 10:00:51,014 - subliminal_patch.core            (7f0ae72e1b38) :  DEBUG (core:170) - Nothing to translate found
2024-06-20 10:00:51,014 - subliminal_patch.core            (7f0ae72e1b38) :  INFO (core:365) - Listing subtitles with provider 'opensubtitlescom' and languages {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-20 10:00:51,014 - subliminal_patch.core            (7f0ae72e1b38) :  INFO (core:296) - Initializing provider opensubtitlescom
2024-06-20 10:00:51,014 - subliminal_patch.providers.opensubtitlescom (7f0ae72e1b38) :  DEBUG (opensubtitlescom:191) - No cached token, we'll try to login again.
2024-06-20 10:00:51,016 - urllib3.connectionpool           (7f0ae72e1b38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (1): api.opensubtitles.com:443
2024-06-20 10:00:54,045 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f0ae6dee9f0>
2024-06-20 10:00:54,046 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-20 10:00:56,021 - retry.api                        (7f0ae72e1b38) :  WARNING (api:40) - HTTPSConnectionPool(host='api.opensubtitles.com', port=443): Max retries exceeded with url: /api/v1/login (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f0ae6dee900>: Failed to resolve 'api.opensubtitles.com' ([Errno -3] Try again)")), retrying in 5 seconds...
2024-06-20 10:00:59,049 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f0ae6dedbe0>
2024-06-20 10:00:59,050 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-20 10:00:59,559 - SignalRCoreClient                (7f0ae8185b38) :  DEBUG (websocket_transport:177) - Message received{"type":6}
2024-06-20 10:00:59,560 - SignalRCoreClient                (7f0ae8185b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-20 10:00:59,560 - SignalRCoreClient                (7f0ae8185b38) :  DEBUG (json_hub_protocol:33) - {"type":6}
2024-06-20 10:01:01,022 - urllib3.connectionpool           (7f0ae72e1b38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (2): api.opensubtitles.com:443
2024-06-20 10:01:04,051 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f0ae6deecf0>
2024-06-20 10:01:04,052 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-20 10:01:06,026 - retry.api                        (7f0ae72e1b38) :  WARNING (api:40) - HTTPSConnectionPool(host='api.opensubtitles.com', port=443): Max retries exceeded with url: /api/v1/login (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f0ae6dece90>: Failed to resolve 'api.opensubtitles.com' ([Errno -3] Try again)")), retrying in 5 seconds...
2024-06-20 10:01:08,127 - engineio.server                  (7f0ae8457b38) :  INFO (socket:76) - PKYALhAHKnp3yGzzAAAC: Sending packet PING data None
2024-06-20 10:01:08,169 - engineio.server                  (7f0af1f4db38) :  INFO (socket:39) - PKYALhAHKnp3yGzzAAAC: Received packet PONG data 
2024-06-20 10:01:09,053 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f0ae9224fb0>
2024-06-20 10:01:09,054 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-20 10:01:11,029 - urllib3.connectionpool           (7f0ae72e1b38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (3): api.opensubtitles.com:443
2024-06-20 10:01:14,055 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f0ae6deefc0>
2024-06-20 10:01:14,055 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-20 10:01:14,560 - SignalRCoreClient                (7f0ae8185b38) :  DEBUG (websocket_transport:177) - Message received{"type":6}
2024-06-20 10:01:14,560 - SignalRCoreClient                (7f0ae8185b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-20 10:01:14,560 - SignalRCoreClient                (7f0ae8185b38) :  DEBUG (json_hub_protocol:33) - {"type":6}
2024-06-20 10:01:16,036 - subliminal_patch.core            (7f0ae72e1b38) :  ERROR (core:399) - Unexpected error in provider 'opensubtitlescom': Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 220, in login
    self.token = r.json()['token']
                 ^^^^^^
AttributeError: 'NoneType' object has no attribute 'json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ~~~~^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 298, in __getitem__
    provider.initialize()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 192, in initialize
    self.login()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 222, in login
    log_request_response(r)
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 581, in log_request_response
    redacted_request_headers = response.request.headers
                               ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'request'
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 220, in login
    self.token = r.json()['token']
                 ^^^^^^
AttributeError: 'NoneType' object has no attribute 'json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ~~~~^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 298, in __getitem__
    provider.initialize()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 192, in initialize
    self.login()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 222, in login
    log_request_response(r)
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 581, in log_request_response
    redacted_request_headers = response.request.headers
                               ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'request'
2024-06-20 10:01:16,051 - root                             (7f0ae72e1b38) :  INFO (get_providers:379) - Throttling opensubtitlescom for 10 minutes, until 24/06/20 10:11, because of: AttributeError. Exception info: "''NoneType' object has no attribute 'request'' ~ opensubtitlescom.py@581"
2024-06-20 10:01:16,052 - ga4mp.ga4mp                      (7f0ae72e1b38) :  INFO (ga4mp:183) - Sending POST to: https://www.google-analytics.com/mp/collect
2024-06-20 10:01:19,056 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f0ae6ded100>
2024-06-20 10:01:19,057 - SignalRCoreClient                (7f0ae887bb38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-20 10:01:21,058 - root                             (7f0ae72e1b38) :  DEBUG (analytics:80) - BAZARR unable to track event.
2024-06-20 10:01:21,060 - socketio.server                  (7f0ae72e1b38) :  INFO (server:161) - emitting event "data" to all [/]
2024-06-20 10:01:21,060 - engineio.server                  (7f0ae72e1b38) :  INFO (socket:76) - PKYALhAHKnp3yGzzAAAC: Sending packet MESSAGE data 2["data",{"type":"badges","action":"update","payload":null}]
2024-06-20 10:01:21,061 - subliminal_patch.core            (7f0af2371b38) :  INFO (core:734) - Discarding provider opensubtitlescom
2024-06-20 10:01:21,061 - subliminal_patch.core_persistent (7f0af2371b38) :  INFO (core_persistent:26) - Found 0 subtitle(s)
2024-06-20 10:01:21,065 - root                             (7f0af2371b38) :  DEBUG (manual:134) - BAZARR 0 Subtitles have been found for this file: /media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4
2024-06-20 10:01:21,065 - root                             (7f0af2371b38) :  DEBUG (manual:135) - BAZARR Ended searching Subtitles for this file: /media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4
2024-06-20 10:01:22,117 - root                             (7f0af1917b38) :  DEBUG (info:49) - BAZARR got this Sonarr version from its API: 
morpheus65535 commented 4 months ago

Should be fixed in upcoming beta. Thanks.

satozuki commented 4 months ago

@morpheus65535 thank you again, here the result after updating to beta.10:

Bazarr Version: 1.4.4-beta.10 Package Version: v1.4.4-beta.10-ls606 by linuxserver.io Operating System: Linux-4.4.302+-x86_64-with

2024-06-21 09:36:54,474 - subliminal_patch.core            (7f354e9b7b38) :  INFO (core:700) - Using 1 threads for 1 providers ({'opensubtitlescom'})
2024-06-21 09:36:54,507 - subliminal_patch.core            (7f354e9b7b38) :  DEBUG (core:248) - Discarded providers: set() | New providers: {'opensubtitlescom'}
2024-06-21 09:36:54,508 - subliminal_patch.core            (7f354e9b7b38) :  DEBUG (core:250) - Updated discarded providers: set()
2024-06-21 09:36:54,508 - subliminal_patch.core            (7f354e9b7b38) :  DEBUG (core:254) - Removed providers: set()
2024-06-21 09:36:54,509 - subliminal_patch.core            (7f354e9b7b38) :  DEBUG (core:110) - No provider config updates
2024-06-21 09:36:54,509 - root                             (7f354e9b7b38) :  DEBUG (pool:103) - BAZARR pools update elapsed time: 83.3ms
2024-06-21 09:36:54,511 - root                             (7f354e9b7b38) :  DEBUG (manual:28) - BAZARR Manually searching subtitles for this file: /media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4
2024-06-21 09:36:54,523 - subliminal_patch.score           (7f354e9b7b38) :  DEBUG (score:65) - Hash value: 119 -> Rest sum: 120
2024-06-21 09:36:54,523 - subliminal_patch.score           (7f354e9b7b38) :  DEBUG (score:65) - Hash value: 359 -> Rest sum: 360
2024-06-21 09:36:54,523 - subliminal_patch.core            (7f354e9b7b38) :  DEBUG (core:110) - No provider config updates
2024-06-21 09:36:54,525 - subzero.video                    (7f354e9b7b38) :  DEBUG (video:60) - Parsing video: Casablanca (1942) [BluRay] [1080p] [YTS.AM].mp4, hints: {'title': 'Casablanca', 'type': 'movie'}
2024-06-21 09:36:54,525 - subliminal_patch.core            (7f354e9b7b38) :  INFO (core:832) - Determining basic video properties for 'Casablanca (1942) [BluRay] [1080p] [YTS.AM].mp4' in '/media/media/Movie/Casablanca (1943)'
2024-06-21 09:36:54,717 - subliminal_patch.core            (7f354e9b7b38) :  DEBUG (core:840) - GuessIt found: {
    "title": "Casablanca",
    "year": 1942,
    "source": "Blu-ray",
    "screen_size": "1080p",
    "release_group": "YTS.AM",
    "container": "mp4",
    "mimetype": "video/mp4",
    "type": "movie"
}
2024-06-21 09:36:54,717 - subliminal_patch.core            (7f354e9b7b38) :  DEBUG (core:856) - Size is 1726049621
2024-06-21 09:36:54,728 - subliminal_patch.core            (7f354e9b7b38) :  DEBUG (core:884) - Computed hashes {'opensubtitlescom': 'bd5b703cbfb4dcd8'}
2024-06-21 09:36:54,728 - root                             (7f354e9b7b38) :  DEBUG (utils:48) - Running refiner: database
2024-06-21 09:36:54,758 - root                             (7f354e9b7b38) :  DEBUG (utils:48) - Running refiner: ffprobe
2024-06-21 09:36:54,762 - root                             (7f354e9b7b38) :  DEBUG (ffprobe:40) - FFprobe found: {'path': '/media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4', 'duration': datetime.timedelta(seconds=6158, microseconds=154000), 'size': 1726049621, 'bit_rate': 2242294, 'container': 'mp4', 'video': [{'id': 0, 'language': <Language [und]>, 'duration': datetime.timedelta(seconds=6157, microseconds=192708), 'width': 1472, 'height': 1072, 'scan_type': 'Progressive', 'aspect_ratio': Decimal('1.373'), 'pixel_aspect_ratio': Decimal('1.0'), 'resolution': '1080p', 'frame_rate': Decimal('23.976'), 'bit_rate': 2149789, 'bit_depth': 8, 'codec': 'H.264', 'profile': 'High', 'default': True}], 'audio': [{'id': 1, 'language': <Language [und]>, 'duration': datetime.timedelta(seconds=6158, microseconds=154000), 'codec': 'AAC', 'profile': 'Low Complexity', 'channels_count': 2, 'channels': '2.0', 'bit_rate': 87005, 'sampling_rate': 48000, 'default': True}], 'provider': {'name': 'ffmpeg', 'version': {'/usr/bin/ffprobe': 'v6.1.1'}}}
2024-06-21 09:36:54,763 - root                             (7f354e9b7b38) :  DEBUG (utils:48) - Running refiner: arr_history
2024-06-21 09:36:54,764 - root                             (7f354e9b7b38) :  DEBUG (utils:48) - Running refiner: anidb
2024-06-21 09:36:54,765 - root                             (7f354e9b7b38) :  DEBUG (anidb:119) - Video is not an Anime TV series, skipping refinement for <Movie ['Casablanca', 1942]>
2024-06-21 09:36:54,765 - root                             (7f354e9b7b38) :  DEBUG (utils:51) - BAZARR is using these video object properties: {'name': '/media/media/Movie/Casablanca (1943)/Casablanca (1942) [BluRay] [1080p] [YTS.AM].mp4', 'source': 'Blu-ray', 'release_group': 'YTS.AM', 'resolution': '1080p', 'video_codec': 'H.264', 'audio_codec': 'AAC', 'imdb_id': 'tt0034583', 'hashes': {'opensubtitlescom': 'bd5b703cbfb4dcd8'}, 'size': 1726049621, 'subtitle_languages': set(), 'original_name': 'Casablanca (1943) Bluray-1080p.mp4', 'plexapi_metadata': {}, 'hints': {'title': 'Casablanca', 'type': 'movie', 'single_value': True}, 'audio_languages': {'und'}, 'external_subtitle_languages': set(), 'streaming_service': None, 'edition': None, 'original_path': '/media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4', 'other': None, 'info_url': None, 'series_anidb_series_id': (None,), 'series_anidb_episode_id': (None,), 'title': 'Casablanca', 'year': 1942, 'alternative_titles': ['Kasaburanka', 'Kasablanka', '北非諜影'], 'used_scene_name': True, 'radarrId': 667, 'fps': Decimal('23.976')}
2024-06-21 09:36:54,765 - subliminal_patch.core_persistent (7f354e9b7b38) :  INFO (core_persistent:21) - Listing subtitles for <Movie ['Casablanca', 1942]>
2024-06-21 09:36:54,766 - subliminal_patch.core            (7f35433dbb38) :  DEBUG (core:335) - Languages requested: {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-21 09:36:54,766 - subliminal_patch.core            (7f35433dbb38) :  DEBUG (core:192) - New set: 1688 items
2024-06-21 09:36:54,766 - subliminal_patch.core            (7f35433dbb38) :  DEBUG (core:170) - Nothing to translate found
2024-06-21 09:36:54,767 - subliminal_patch.core            (7f35433dbb38) :  INFO (core:365) - Listing subtitles with provider 'opensubtitlescom' and languages {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-21 09:36:54,767 - subliminal_patch.core            (7f35433dbb38) :  INFO (core:296) - Initializing provider opensubtitlescom
2024-06-21 09:36:54,807 - subliminal_patch.providers.opensubtitlescom (7f35433dbb38) :  DEBUG (opensubtitlescom:191) - No cached token, we'll try to login again.
2024-06-21 09:36:54,809 - urllib3.connectionpool           (7f35433dbb38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (1): api.opensubtitles.com:443
2024-06-21 09:36:59,095 - SignalRCoreClient                (7f3545995b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f3544b13620>
2024-06-21 09:36:59,096 - SignalRCoreClient                (7f3545995b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-21 09:36:59,814 - retry.api                        (7f35433dbb38) :  WARNING (api:40) - HTTPSConnectionPool(host='api.opensubtitles.com', port=443): Max retries exceeded with url: /api/v1/login (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f3544b13cb0>: Failed to resolve 'api.opensubtitles.com' ([Errno -3] Try again)")), retrying in 5 seconds...
2024-06-21 09:37:04,097 - SignalRCoreClient                (7f3545995b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f3544929c10>
2024-06-21 09:37:04,098 - SignalRCoreClient                (7f3545995b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-21 09:37:04,816 - urllib3.connectionpool           (7f35433dbb38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (2): api.opensubtitles.com:443
2024-06-21 09:37:07,386 - SignalRCoreClient                (7f3545783b38) :  DEBUG (websocket_transport:177) - Message received{"type":6}
2024-06-21 09:37:07,387 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 09:37:07,387 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:33) - {"type":6}
2024-06-21 09:37:09,099 - SignalRCoreClient                (7f3545995b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f3544b10200>
2024-06-21 09:37:09,100 - SignalRCoreClient                (7f3545995b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-21 09:37:09,823 - retry.api                        (7f35433dbb38) :  WARNING (api:40) - HTTPSConnectionPool(host='api.opensubtitles.com', port=443): Max retries exceeded with url: /api/v1/login (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f3544b13620>: Failed to resolve 'api.opensubtitles.com' ([Errno -3] Try again)")), retrying in 5 seconds...
2024-06-21 09:37:12,958 - engineio.server                  (7f35437adb38) :  INFO (socket:76) - x8i-lEb3iriL5hd8AAAA: Sending packet PING data None
2024-06-21 09:37:12,979 - engineio.server                  (7f354e7a5b38) :  INFO (socket:39) - x8i-lEb3iriL5hd8AAAA: Received packet PONG data 
2024-06-21 09:37:14,101 - SignalRCoreClient                (7f3545995b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f3545b59d30>
2024-06-21 09:37:14,102 - SignalRCoreClient                (7f3545995b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-21 09:37:14,824 - urllib3.connectionpool           (7f35433dbb38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (3): api.opensubtitles.com:443
2024-06-21 09:37:19,103 - SignalRCoreClient                (7f3545995b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f3544b104a0>
2024-06-21 09:37:19,103 - SignalRCoreClient                (7f3545995b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-21 09:37:19,833 - subliminal_patch.core            (7f35433dbb38) :  ERROR (core:399) - Unexpected error in provider 'opensubtitlescom': Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 220, in login
    self.token = r.json()['token']
                 ^^^^^^
AttributeError: 'NoneType' object has no attribute 'json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ~~~~^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 298, in __getitem__
    provider.initialize()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 192, in initialize
    self.login()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 222, in login
    log_request_response(r)
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 577, in log_request_response
    redacted_request_headers = response.request.headers
                               ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'request'
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 220, in login
    self.token = r.json()['token']
                 ^^^^^^
AttributeError: 'NoneType' object has no attribute 'json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ~~~~^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 298, in __getitem__
    provider.initialize()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 192, in initialize
    self.login()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 222, in login
    log_request_response(r)
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitlescom.py", line 577, in log_request_response
    redacted_request_headers = response.request.headers
                               ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'request'
2024-06-21 09:37:19,876 - root                             (7f35433dbb38) :  INFO (get_providers:379) - Throttling opensubtitlescom for 10 minutes, until 24/06/21 09:47, because of: AttributeError. Exception info: "''NoneType' object has no attribute 'request'' ~ opensubtitlescom.py@577"
2024-06-21 09:37:19,877 - ga4mp.ga4mp                      (7f35433dbb38) :  INFO (ga4mp:183) - Sending POST to: https://www.google-analytics.com/mp/collect
2024-06-21 09:37:22,797 - SignalRCoreClient                (7f3545783b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue"}]}{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue/details"}]}
2024-06-21 09:37:22,798 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 09:37:22,799 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue"}]}{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue/details"}]}
2024-06-21 09:37:23,387 - SignalRCoreClient                (7f3545783b38) :  DEBUG (websocket_transport:177) - Message received{"type":6}
2024-06-21 09:37:23,387 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 09:37:23,387 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:33) - {"type":6}
2024-06-21 09:37:23,428 - SignalRCoreClient                (7f3545783b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"system/task"}]}
2024-06-21 09:37:23,429 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 09:37:23,429 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"system/task"}]}
2024-06-21 09:37:23,589 - SignalRCoreClient                (7f3545783b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue"}]}
2024-06-21 09:37:23,589 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 09:37:23,589 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue"}]}
2024-06-21 09:37:23,589 - SignalRCoreClient                (7f3545783b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue/details"}]}
2024-06-21 09:37:23,590 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 09:37:23,590 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue/details"}]}
2024-06-21 09:37:23,641 - SignalRCoreClient                (7f3545783b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"system/task"}]}
2024-06-21 09:37:23,642 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 09:37:23,642 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"system/task"}]}
2024-06-21 09:37:24,104 - SignalRCoreClient                (7f3545995b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f3546045250>
2024-06-21 09:37:24,105 - SignalRCoreClient                (7f3545995b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-21 09:37:24,917 - root                             (7f35433dbb38) :  DEBUG (analytics:80) - BAZARR unable to track event.
2024-06-21 09:37:24,919 - socketio.server                  (7f35433dbb38) :  INFO (server:161) - emitting event "data" to all [/]
2024-06-21 09:37:24,920 - engineio.server                  (7f35433dbb38) :  INFO (socket:76) - x8i-lEb3iriL5hd8AAAA: Sending packet MESSAGE data 2["data",{"type":"badges","action":"update","payload":null}]
2024-06-21 09:37:24,920 - subliminal_patch.core            (7f354e9b7b38) :  INFO (core:734) - Discarding provider opensubtitlescom
2024-06-21 09:37:24,921 - subliminal_patch.core_persistent (7f354e9b7b38) :  INFO (core_persistent:26) - Found 0 subtitle(s)
2024-06-21 09:37:24,924 - root                             (7f354e9b7b38) :  DEBUG (manual:134) - BAZARR 0 Subtitles have been found for this file: /media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4
2024-06-21 09:37:24,925 - root                             (7f354e9b7b38) :  DEBUG (manual:135) - BAZARR Ended searching Subtitles for this file: /media/media/Movie/Casablanca (1943)/Casablanca (1943) Bluray-1080p.mp4
2024-06-21 09:37:25,961 - root                             (7f354e16fb38) :  DEBUG (info:49) - BAZARR got this Sonarr version from its API: 
2024-06-21 09:37:27,803 - SignalRCoreClient                (7f3545783b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"resource":{"totalCount":69,"count":1,"unknownCount":68,"errors":false,"warnings":true,"unknownErrors":false,"unknownWarnings":true},"action":"updated"},"name":"queue/status"}]}
2024-06-21 09:37:27,803 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 09:37:27,803 - SignalRCoreClient                (7f3545783b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"resource":{"totalCount":69,"count":1,"unknownCount":68,"errors":false,"warnings":true,"unknownErrors":false,"unknownWarnings":true},"action":"updated"},"name":"queue/status"}]}
satozuki commented 4 months ago

I do not know if it can help, but my account is VIP in opensubtitles.org

Here the logs when I use ONLY opensubtitles.org

2024-06-21 12:17:49,370 - subliminal_patch.core            (7f85ac38ab38) :  INFO (core:700) - Using 1 threads for 1 providers ({'opensubtitles'})
2024-06-21 12:17:49,403 - subliminal_patch.core            (7f85ac38ab38) :  DEBUG (core:248) - Discarded providers: set() | New providers: {'opensubtitles'}
2024-06-21 12:17:49,404 - subliminal_patch.core            (7f85ac38ab38) :  DEBUG (core:250) - Updated discarded providers: set()
2024-06-21 12:17:49,404 - subliminal_patch.core            (7f85ac38ab38) :  DEBUG (core:254) - Removed providers: set()
2024-06-21 12:17:49,404 - subliminal_patch.core            (7f85ac38ab38) :  DEBUG (core:110) - No provider config updates
2024-06-21 12:17:49,405 - root                             (7f85ac38ab38) :  DEBUG (pool:103) - BAZARR pools update elapsed time: 70.36ms
2024-06-21 12:17:49,405 - root                             (7f85ac38ab38) :  DEBUG (manual:28) - BAZARR Manually searching subtitles for this file: /media/media/Movie/9 (2009)/9 (2009) Bluray-1080p.mp4
2024-06-21 12:17:49,414 - subliminal_patch.score           (7f85ac38ab38) :  DEBUG (score:65) - Hash value: 119 -> Rest sum: 120
2024-06-21 12:17:49,415 - subliminal_patch.score           (7f85ac38ab38) :  DEBUG (score:65) - Hash value: 359 -> Rest sum: 360
2024-06-21 12:17:49,415 - subliminal_patch.core            (7f85ac38ab38) :  DEBUG (core:98) - Config changed. Restarting provider: opensubtitles
2024-06-21 12:17:49,415 - subliminal_patch.providers.opensubtitles (7f85ac38ab38) :  DEBUG (opensubtitles:162) - Using timeout: 15
2024-06-21 12:17:49,416 - subliminal_patch.core            (7f85ac38ab38) :  DEBUG (core:108) - Providers with config updates: {'opensubtitles'}
2024-06-21 12:17:49,417 - subzero.video                    (7f85ac38ab38) :  DEBUG (video:60) - Parsing video: 9 (2009) [1080p].mp4, hints: {'title': '9', 'type': 'movie'}
2024-06-21 12:17:49,417 - subliminal_patch.core            (7f85ac38ab38) :  INFO (core:832) - Determining basic video properties for '9 (2009) [1080p].mp4' in '/media/media/Movie/9 (2009)'
2024-06-21 12:17:49,550 - subliminal_patch.core            (7f85ac38ab38) :  DEBUG (core:840) - GuessIt found: {
    "title": "9",
    "year": 2009,
    "screen_size": "1080p",
    "container": "mp4",
    "mimetype": "video/mp4",
    "type": "movie"
}
2024-06-21 12:17:49,551 - subliminal_patch.core            (7f85ac38ab38) :  DEBUG (core:856) - Size is 1321153328
2024-06-21 12:17:49,561 - subliminal_patch.core            (7f85ac38ab38) :  DEBUG (core:884) - Computed hashes {'opensubtitles': '55855d81f2eac160'}
2024-06-21 12:17:49,561 - root                             (7f85ac38ab38) :  DEBUG (utils:48) - Running refiner: database
2024-06-21 12:17:49,603 - root                             (7f85ac38ab38) :  DEBUG (utils:48) - Running refiner: ffprobe
2024-06-21 12:17:49,609 - root                             (7f85ac38ab38) :  DEBUG (ffprobe:40) - FFprobe found: {'path': '/media/media/Movie/9 (2009)/9 (2009) Bluray-1080p.mp4', 'duration': datetime.timedelta(seconds=4754, microseconds=332917), 'size': 1321153328, 'bit_rate': 2223072, 'container': 'mp4', 'video': [{'id': 0, 'language': <Language [und]>, 'duration': datetime.timedelta(seconds=4754, microseconds=249500), 'width': 1920, 'height': 1080, 'scan_type': 'Progressive', 'aspect_ratio': Decimal('1.778'), 'pixel_aspect_ratio': Decimal('1.0'), 'resolution': '1080p', 'frame_rate': Decimal('23.976'), 'bit_rate': 2123059, 'bit_depth': 8, 'codec': 'H.264', 'profile': 'High', 'default': True}], 'audio': [{'id': 1, 'language': <Language [en]>, 'duration': datetime.timedelta(seconds=4751, microseconds=552000), 'codec': 'AAC', 'profile': 'Low Complexity', 'channels_count': 2, 'channels': '2.0', 'bit_rate': 96004, 'sampling_rate': 48000, 'default': True}], 'provider': {'name': 'ffmpeg', 'version': {'/usr/bin/ffprobe': 'v6.1.1'}}}
2024-06-21 12:17:49,610 - root                             (7f85ac38ab38) :  DEBUG (utils:48) - Running refiner: arr_history
2024-06-21 12:17:49,611 - root                             (7f85ac38ab38) :  DEBUG (utils:48) - Running refiner: anidb
2024-06-21 12:17:49,611 - root                             (7f85ac38ab38) :  DEBUG (anidb:119) - Video is not an Anime TV series, skipping refinement for <Movie ['9', 2009]>
2024-06-21 12:17:49,611 - root                             (7f85ac38ab38) :  DEBUG (utils:51) - BAZARR is using these video object properties: {'name': '/media/media/Movie/9 (2009)/9 (2009) [1080p].mp4', 'source': 'Blu-ray', 'release_group': None, 'resolution': '1080p', 'video_codec': 'H.264', 'audio_codec': 'AAC', 'imdb_id': 'tt0472033', 'hashes': {'opensubtitles': '55855d81f2eac160'}, 'size': 1321153328, 'subtitle_languages': set(), 'original_name': '9 (2009) Bluray-1080p.mp4', 'plexapi_metadata': {}, 'hints': {'title': '9', 'type': 'movie', 'single_value': True}, 'audio_languages': {'eng'}, 'external_subtitle_languages': set(), 'streaming_service': None, 'edition': None, 'original_path': '/media/media/Movie/9 (2009)/9 (2009) Bluray-1080p.mp4', 'other': None, 'info_url': None, 'series_anidb_series_id': (None,), 'series_anidb_episode_id': (None,), 'title': '9', 'year': 2009, 'alternative_titles': ['9 Number', 'Nummer 9', 'Nine', 'Девятый', 'ซูเปอร์ไนน์ อัจฉริยะพลิกโลก', 'تسعة', 'نه', 'Chiến Binh Số 9', '#9 - Nummer 9'], 'used_scene_name': True, 'radarrId': 624, 'fps': Decimal('23.976')}
2024-06-21 12:17:49,612 - subliminal_patch.core_persistent (7f85ac38ab38) :  INFO (core_persistent:21) - Listing subtitles for <Movie ['9', 2009]>
2024-06-21 12:17:49,612 - subliminal_patch.core            (7f85a6802b38) :  DEBUG (core:335) - Languages requested: {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-21 12:17:49,613 - subliminal_patch.core            (7f85a6802b38) :  DEBUG (core:192) - New set: 1688 items
2024-06-21 12:17:49,613 - subliminal_patch.core            (7f85a6802b38) :  DEBUG (core:170) - Nothing to translate found
2024-06-21 12:17:49,613 - subliminal_patch.core            (7f85a6802b38) :  INFO (core:365) - Listing subtitles with provider 'opensubtitles' and languages {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-21 12:17:49,614 - subliminal_patch.providers.opensubtitles (7f85a6802b38) :  INFO (opensubtitles:305) - Searching subtitles [{'moviehash': '55855d81f2eac160', 'moviebytesize': '1321153328', 'sublanguageid': 'eng,eng'}, {'imdbid': '0472033', 'sublanguageid': 'eng,eng'}]
2024-06-21 12:17:49,614 - subliminal_patch.providers.opensubtitles (7f85a6802b38) :  INFO (opensubtitles:198) - Logging in
2024-06-21 12:17:49,615 - urllib3.connectionpool           (7f85a6802b38) :  DEBUG (connectionpool:244) - Starting new HTTP connection (1): vip-api.opensubtitles.org:80
2024-06-21 12:17:52,558 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue"}]}{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue/details"}]}
2024-06-21 12:17:52,559 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 12:17:52,559 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue"}]}{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue/details"}]}
2024-06-21 12:17:53,160 - SignalRCoreClient                (7f85a8025b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f85a8053ce0>
2024-06-21 12:17:53,161 - SignalRCoreClient                (7f85a8025b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-21 12:17:53,337 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"system/task"}]}
2024-06-21 12:17:53,338 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 12:17:53,338 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"system/task"}]}
2024-06-21 12:17:53,468 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue"}]}{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue/details"}]}
2024-06-21 12:17:53,468 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 12:17:53,468 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue"}]}{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"queue/details"}]}
2024-06-21 12:17:53,522 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"system/task"}]}
2024-06-21 12:17:53,522 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 12:17:53,522 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"action":"sync"},"name":"system/task"}]}
2024-06-21 12:17:54,622 - subliminal_patch.providers       (7f85a6802b38) :  ERROR (__init__:52) - Unknown Error, empty response: None: None
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/__init__.py", line 47, in wrapper
    return method(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 306, in query
    response = self.use_token_or_login(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 217, in use_token_or_login
    self.log_in()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 201, in log_in
    self.log_in_url(self.vip_url if self.is_vip else self.default_url)
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 184, in log_in_url
    response = self.retry(
               ^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/mixins.py", line 46, in retry
    return f()
           ^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 185, in <lambda>
    lambda: checked(
            ^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 443, in checked
    raise ServiceUnavailable("Unknown Error, empty response: %s: %r" % (status_code, response))
subliminal.exceptions.ServiceUnavailable: Unknown Error, empty response: None: None
2024-06-21 12:17:54,624 - subliminal_patch.providers       (7f85a6802b38) :  DEBUG (__init__:53) - Reinitializing <OpenSubtitlesProvider [(<class 'subliminal.video.Episode'>, <class 'subliminal.video.Movie'>)]> instance (1 attempt)
2024-06-21 12:17:54,624 - subliminal_patch.providers.opensubtitles (7f85a6802b38) :  INFO (opensubtitles:305) - Searching subtitles [{'moviehash': '55855d81f2eac160', 'moviebytesize': '1321153328', 'sublanguageid': 'eng,eng'}, {'imdbid': '0472033', 'sublanguageid': 'eng,eng'}]
2024-06-21 12:17:54,625 - subliminal_patch.providers.opensubtitles (7f85a6802b38) :  INFO (opensubtitles:198) - Logging in
2024-06-21 12:17:54,626 - urllib3.connectionpool           (7f85a6802b38) :  DEBUG (connectionpool:244) - Starting new HTTP connection (1): vip-api.opensubtitles.org:80
2024-06-21 12:17:57,560 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (websocket_transport:177) - Message received{"type":1,"target":"receiveMessage","arguments":[{"body":{"resource":{"totalCount":69,"count":1,"unknownCount":68,"errors":false,"warnings":true,"unknownErrors":false,"unknownWarnings":true},"action":"updated"},"name":"queue/status"}]}
2024-06-21 12:17:57,561 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 12:17:57,561 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:33) - {"type":1,"target":"receiveMessage","arguments":[{"body":{"resource":{"totalCount":69,"count":1,"unknownCount":68,"errors":false,"warnings":true,"unknownErrors":false,"unknownWarnings":true},"action":"updated"},"name":"queue/status"}]}
2024-06-21 12:17:57,960 - engineio.server                  (7f85a6a14b38) :  INFO (socket:76) - JIeEHK_8xhOxVTUPAAAC: Sending packet PING data None
2024-06-21 12:17:57,998 - engineio.server                  (7f85ac178b38) :  INFO (socket:39) - JIeEHK_8xhOxVTUPAAAC: Received packet PONG data 
2024-06-21 12:17:58,162 - SignalRCoreClient                (7f85a8025b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f85a6e840e0>
2024-06-21 12:17:58,163 - SignalRCoreClient                (7f85a8025b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-21 12:17:59,633 - subliminal_patch.core            (7f85a6802b38) :  ERROR (core:399) - Unexpected error in provider 'opensubtitles': Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 271, in list_subtitles
    return self.query(video, languages, hash=video.hashes.get('opensubtitles'), size=video.size,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/__init__.py", line 47, in wrapper
    return method(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 306, in query
    response = self.use_token_or_login(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 217, in use_token_or_login
    self.log_in()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 201, in log_in
    self.log_in_url(self.vip_url if self.is_vip else self.default_url)
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 184, in log_in_url
    response = self.retry(
               ^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/mixins.py", line 46, in retry
    return f()
           ^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 185, in <lambda>
    lambda: checked(
            ^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 443, in checked
    raise ServiceUnavailable("Unknown Error, empty response: %s: %r" % (status_code, response))
subliminal.exceptions.ServiceUnavailable: Unknown Error, empty response: None: None
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 271, in list_subtitles
    return self.query(video, languages, hash=video.hashes.get('opensubtitles'), size=video.size,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/__init__.py", line 47, in wrapper
    return method(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 306, in query
    response = self.use_token_or_login(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 217, in use_token_or_login
    self.log_in()
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 201, in log_in
    self.log_in_url(self.vip_url if self.is_vip else self.default_url)
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 184, in log_in_url
    response = self.retry(
               ^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/mixins.py", line 46, in retry
    return f()
           ^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 185, in <lambda>
    lambda: checked(
            ^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/opensubtitles.py", line 443, in checked
    raise ServiceUnavailable("Unknown Error, empty response: %s: %r" % (status_code, response))
subliminal.exceptions.ServiceUnavailable: Unknown Error, empty response: None: None
2024-06-21 12:17:59,664 - root                             (7f85a6802b38) :  INFO (get_providers:425) - Provider opensubtitles throttle count 1 of 5, waiting 5sec and trying again
2024-06-21 12:18:02,387 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (websocket_transport:177) - Message received{"type":6}
2024-06-21 12:18:02,387 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:32) - Raw message incomming: 
2024-06-21 12:18:02,387 - SignalRCoreClient                (7f85a7e13b38) :  DEBUG (json_hub_protocol:33) - {"type":6}
2024-06-21 12:18:03,164 - SignalRCoreClient                (7f85a8025b38) :  DEBUG (websocket_transport:193) - Sending message <signalrcore.messages.ping_message.PingMessage object at 0x7f85bf1ca2d0>
2024-06-21 12:18:03,165 - SignalRCoreClient                (7f85a8025b38) :  DEBUG (json_hub_protocol:49) - {"type": 6}
2024-06-21 12:18:04,666 - socketio.server                  (7f85a6802b38) :  INFO (server:161) - emitting event "data" to all [/]
2024-06-21 12:18:04,666 - engineio.server                  (7f85a6802b38) :  INFO (socket:76) - JIeEHK_8xhOxVTUPAAAC: Sending packet MESSAGE data 2["data",{"type":"badges","action":"update","payload":null}]
2024-06-21 12:18:04,667 - subliminal_patch.core            (7f85ac38ab38) :  INFO (core:734) - Discarding provider opensubtitles
2024-06-21 12:18:04,667 - subliminal_patch.core_persistent (7f85ac38ab38) :  INFO (core_persistent:26) - Found 0 subtitle(s)
2024-06-21 12:18:04,670 - root                             (7f85ac38ab38) :  DEBUG (manual:134) - BAZARR 0 Subtitles have been found for this file: /media/media/Movie/9 (2009)/9 (2009) Bluray-1080p.mp4
2024-06-21 12:18:04,670 - root                             (7f85ac38ab38) :  DEBUG (manual:135) - BAZARR Ended searching Subtitles for this file: /media/media/Movie/9 (2009)/9 (2009) Bluray-1080p.mp4
morpheus65535 commented 4 months ago

Whatever I'll do, it will only catch the exception. You have an issue connecting to those two providers. Something is interfering like geo IP blocking, proxy, network ads blocker or something similar.

satozuki commented 4 months ago

Thank you @morpheus65535 ! You are right. I have found what the issue was, I am now getting results.

Thanks again for your time and I apologize for my mistake in not realizing before the connection issue.

morpheus65535 commented 4 months ago

No problem! Happy to see it working now for you. Enjoy it!

Invictus6474 commented 4 months ago

@satozuki I'm seeing the same issue! How did you manage to fix yours?

I have confirmed the docker container can access opensubtitles.com (ping).. I can access on browser with no captcha or other limitations.. I also have VIP, so should not have other blockers..