diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/subliminal_patch/providers/subdivx.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/subliminal_patch/providers/subdivx.py b/libs/subliminal_patch/providers/subdivx.py index 68b4a33dc..bc902363e 100644 --- a/libs/subliminal_patch/providers/subdivx.py +++ b/libs/subliminal_patch/providers/subdivx.py @@ -216,13 +216,14 @@ class SubdivxSubtitlesProvider(Provider): if not any(item in datos for item in ("Cds:</b> 1", "SubRip")): continue - spain = "/pais/7.gif" in datos - language = Language.fromalpha2("es") if spain else Language("spa", "MX") - # description sub_details = body_soup.find("div", {"id": "buscador_detalle_sub"}).text description = sub_details.replace(",", " ") + # language + spain = "/pais/7.gif" in datos or "espaƱa" in description.lower() + language = Language.fromalpha2("es") if spain else Language("spa", "MX") + # uploader uploader = body_soup.find("a", {"class": "link1"}).text download_url = _get_download_url(body_soup) |