From 36f8472e281c958df0d7afbbb9aa24666faff364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Bart=C3=ADk?= <63553146+sambartik@users.noreply.github.com> Date: Fri, 11 Mar 2022 19:56:20 +0100 Subject: [PATCH] no log: Fix titulky provider TypeError (#1760) --- libs/subliminal_patch/providers/titulky.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.