mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-03 10:06:24 +00:00
wizdom: some subtitle files are empty, skip
This commit is contained in:
parent
9c66639828
commit
8dad86c8aa
1 changed files with 3 additions and 0 deletions
|
@ -197,6 +197,9 @@ class WizdomProvider(Provider):
|
|||
r = self.session.get(url, headers={'Referer': subtitle.page_link}, timeout=10)
|
||||
r.raise_for_status()
|
||||
|
||||
if len(r.content) == 0:
|
||||
return
|
||||
|
||||
# open the zip
|
||||
with zipfile.ZipFile(io.BytesIO(r.content)) as zf:
|
||||
# remove some filenames from the namelist
|
||||
|
|
Loading…
Reference in a new issue