Skip to content

Commit

Permalink
Fixed subtitrari noi provider issue while downloading some subtitles. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Oct 12, 2024
1 parent 75a5813 commit 92107a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_libs/subliminal_patch/providers/subtitrarinoi.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,7 @@ def download_subtitle(self, subtitle):
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

0 comments on commit 92107a2

Please sign in to comment.