From 57c24a6e56d31f016ccfd1965f3567cc3b3a6520 Mon Sep 17 00:00:00 2001 From: Halali Date: Mon, 27 Jan 2020 22:11:54 +0100 Subject: [PATCH] Another Possible fix for titulky provider --- libs/subliminal_patch/providers/titulky.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/subliminal_patch/providers/titulky.py b/libs/subliminal_patch/providers/titulky.py index f337c46ee..b462f923b 100644 --- a/libs/subliminal_patch/providers/titulky.py +++ b/libs/subliminal_patch/providers/titulky.py @@ -316,13 +316,12 @@ class TitulkyProvider(Provider): elif 'Limit vyčerpán' in r.text: raise DownloadLimitExceeded - soup = ParserBeautifulSoup(r.text.decode('utf-8', 'ignore'), ['lxml', 'html.parser']) + soup = ParserBeautifulSoup(r.text, ['lxml', 'html.parser']) # links = soup.find("a", {"id": "downlink"}).find_all('a') link = soup.find(id="downlink") # TODO: add settings for choice - url = link.get('href') - url = self.dn_url + url + url = self.dn_url + link.get('href') time.sleep(0.5) r = self.session.get(url, headers={'Referer': subtitle.download_link}, timeout=30)