1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-21 23:32:31 +00:00

Fixed zimuku provider skipping non lowercase subtitles (#2644)

This commit is contained in:
Anderson Shindy Oki 2024-08-30 09:06:51 +09:00 committed by GitHub
parent 8e8311186d
commit 0fd635c72d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -316,7 +316,7 @@ class ZimukuProvider(Provider):
r = self.yunsuo_bypass(download_link, headers={'Referer': subtitle.page_link}, timeout=30)
r.raise_for_status()
try:
filename = r.headers["Content-Disposition"]
filename = r.headers["Content-Disposition"].lower()
except KeyError:
logger.debug("Unable to parse subtitles filename. Dropping this subtitles.")
return