diff options
author | Samuel BartÃk <[email protected]> | 2022-03-11 19:56:20 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-11 13:56:20 -0500 |
commit | 36f8472e281c958df0d7afbbb9aa24666faff364 (patch) | |
tree | ec39d1b5b7dc6e0f9e8c3a4563356f3da2ffc80f /libs | |
parent | 2b889fa975ba234377500dd55022cce35eb3d92a (diff) | |
download | bazarr-36f8472e281c958df0d7afbbb9aa24666faff364.tar.gz bazarr-36f8472e281c958df0d7afbbb9aa24666faff364.zip |
no log: Fix titulky provider TypeError (#1760)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/subliminal_patch/providers/titulky.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/subliminal_patch/providers/titulky.py b/libs/subliminal_patch/providers/titulky.py index 29a125ff4..b409e6a19 100644 --- a/libs/subliminal_patch/providers/titulky.py +++ b/libs/subliminal_patch/providers/titulky.py @@ -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. |