Fix Titulky provider compatibility with Python3

This commit is contained in:
Halali 2019-11-27 23:32:58 +01:00
parent 4aa8d63e5f
commit f1596ef7ba
1 changed files with 2 additions and 2 deletions

View File

@ -313,10 +313,10 @@ class TitulkyProvider(Provider):
if not r.content:
logger.debug('Unable to download subtitle. No data returned from provider')
return
elif 'Limit vyčerpán' in r.content:
elif 'Limit vyčerpán' in r.text:
raise DownloadLimitExceeded
soup = ParserBeautifulSoup(r.content.decode('utf-8', 'ignore'), ['lxml', 'html.parser'])
soup = ParserBeautifulSoup(r.text.decode('utf-8', 'ignore'), ['lxml', 'html.parser'])
# links = soup.find("a", {"id": "downlink"}).find_all('a')
link = soup.find(id="downlink")
# TODO: add settings for choice