summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDiego Heras <[email protected]>2021-10-16 15:19:25 +0200
committerGitHub <[email protected]>2021-10-16 09:19:25 -0400
commit08c797c484d93c02d4db2bfa3f702e3926121b9e (patch)
treee3416ace736108a657e7d2fe12ccc6a893c1ad2a
parentebcc80e221240ba7d67620d89e780b0bd7ba65d9 (diff)
downloadbazarr-1.0.1-beta.0.tar.gz
bazarr-1.0.1-beta.0.zip
Fixed TuSubtitulo providerv1.0.1-beta.0
-rw-r--r--libs/subliminal_patch/providers/tusubtitulo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/subliminal_patch/providers/tusubtitulo.py b/libs/subliminal_patch/providers/tusubtitulo.py
index 8385ebeab..fdb3ae892 100644
--- a/libs/subliminal_patch/providers/tusubtitulo.py
+++ b/libs/subliminal_patch/providers/tusubtitulo.py
@@ -141,7 +141,7 @@ class TuSubtituloProvider(Provider):
completed = "%" not in content[5].text
download_url = (
- content[6].find_all("a")[1].get("href").split("?sub=")[-1]
+ parse.unquote(content[6].find_all("a")[1].get("href").split("?sub=")[-1])
)
episode_id = download_url.split("/")[4]
@@ -219,9 +219,9 @@ class TuSubtituloProvider(Provider):
soup = bso(r.content, "lxml")
for url, selected in zip(soup.select(_CSS1), soup.select(_CSS2)):
- meta = ".".join(
+ meta = parse.unquote(".".join(
selected.get("href").split(discriminator)[-1].split(".")[:-1]
- )
+ ))
if meta in episode_dict["download_url"]:
id_url = url.find_all("a")[0].get("href")