mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-04 05:52:24 +08:00
no log: Fix titulky provider TypeError (#1760)
This commit is contained in:
parent
2b889fa975
commit
36f8472e28
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue