no log: Fix titulky provider TypeError (#1760)

pull/1763/head
Samuel Bartík 2 years ago committed by GitHub
parent 2b889fa975
commit 36f8472e28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -327,7 +327,7 @@ class TitulkyProvider(Provider, ProviderSubtitleArchiveMixin):
url,
timeout=self.timeout,
allow_redirects=False,
headers={'Referer': quote(ref)})
headers={'Referer': quote(ref) if ref else None}) # URL encode ref if it has value
# Check if we got redirected because login cookies expired.
# Note: microoptimization - don't bother parsing qs for non 302 responses.

Loading…
Cancel
Save