summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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