aboutsummaryrefslogtreecommitdiffhomepage
path: root/custom_libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-10-12 17:25:09 -0400
committermorpheus65535 <[email protected]>2024-10-12 17:25:09 -0400
commit92107a24257b996e28a045ff0e29f37812093a5c (patch)
tree0a108b56bb0e9dfdfd9207a553bc23e3ad3f3816 /custom_libs
parent75a58139e0ac3478ec23d1f4c8697e2640eb313d (diff)
downloadbazarr-92107a24257b996e28a045ff0e29f37812093a5c.tar.gz
bazarr-92107a24257b996e28a045ff0e29f37812093a5c.zip
Fixed subtitrari noi provider issue while downloading some subtitles. #2708v1.4.6-beta.3
Diffstat (limited to 'custom_libs')
-rw-r--r--custom_libs/subliminal_patch/providers/subtitrarinoi.py5
1 files changed, 4 insertions, 1 deletions
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