From 92107a24257b996e28a045ff0e29f37812093a5c Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sat, 12 Oct 2024 17:25:09 -0400 Subject: [PATCH] Fixed subtitrari noi provider issue while downloading some subtitles. #2708 --- custom_libs/subliminal_patch/providers/subtitrarinoi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_libs/subliminal_patch/providers/subtitrarinoi.py b/custom_libs/subliminal_patch/providers/subtitrarinoi.py index d9795666a..bc71ab53a 100644 --- a/custom_libs/subliminal_patch/providers/subtitrarinoi.py +++ b/custom_libs/subliminal_patch/providers/subtitrarinoi.py @@ -282,4 +282,7 @@ class SubtitrarinoiProvider(Provider, ProviderSubtitleArchiveMixin): r.raise_for_status() archive = get_archive_from_bytes(r.content) - subtitle.content = get_subtitle_from_archive(archive, episode=subtitle.desired_episode) + if archive: + subtitle.content = get_subtitle_from_archive(archive, episode=subtitle.desired_episode) + else: + subtitle.content = r.content