summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSamuel Bartík <[email protected]>2022-03-11 19:56:20 +0100
committerGitHub <[email protected]>2022-03-11 13:56:20 -0500
commit36f8472e281c958df0d7afbbb9aa24666faff364 (patch)
treeec39d1b5b7dc6e0f9e8c3a4563356f3da2ffc80f /libs
parent2b889fa975ba234377500dd55022cce35eb3d92a (diff)
downloadbazarr-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.py2
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.