Fixed zimuku provider skipping non lowercase subtitles (#2644)

pull/2647/merge
Anderson Shindy Oki 3 months ago committed by GitHub
parent 8e8311186d
commit 0fd635c72d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save