mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-24 22:57:13 -04:00
Fixed subtitrari noi provider issue while downloading some subtitles. #2708
This commit is contained in:
parent
75a58139e0
commit
92107a2425
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue