summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorVitiko <[email protected]>2023-04-14 23:19:12 -0400
committerVitiko <[email protected]>2023-04-14 23:19:12 -0400
commitda542a311a5f9a72f36cf25802b38e75e518d7db (patch)
tree4b720abc0f4c3f7f025fb08c2aa878151a82b7ea /libs
parent695734abe67f56f34a5e99aa98cd558e2b39545b (diff)
downloadbazarr-da542a311a5f9a72f36cf25802b38e75e518d7db.tar.gz
bazarr-da542a311a5f9a72f36cf25802b38e75e518d7db.zip
Subdivx Provider: handle UnicodeEncodeError for some titlesv1.2.1-beta.15
Diffstat (limited to 'libs')
-rw-r--r--libs/subliminal_patch/providers/subdivx.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/subliminal_patch/providers/subdivx.py b/libs/subliminal_patch/providers/subdivx.py
index f64e77525..b20523cbf 100644
--- a/libs/subliminal_patch/providers/subdivx.py
+++ b/libs/subliminal_patch/providers/subdivx.py
@@ -200,10 +200,9 @@ class SubdivxSubtitlesProvider(Provider):
# download the subtitle
logger.debug("Downloading subtitle %r", subtitle)
- # download zip / rar file with the subtitle
response = self.session.get(
subtitle.download_url,
- headers={"Referer": subtitle.page_link},
+ headers={"Referer": _SERVER_URL},
timeout=30,
)
response.raise_for_status()