mirror of https://github.com/morpheus65535/bazarr
Merge remote-tracking branch 'origin/development' into development
This commit is contained in:
commit
8cd2224cb6
|
@ -313,10 +313,10 @@ class TitulkyProvider(Provider):
|
||||||
if not r.content:
|
if not r.content:
|
||||||
logger.debug('Unable to download subtitle. No data returned from provider')
|
logger.debug('Unable to download subtitle. No data returned from provider')
|
||||||
return
|
return
|
||||||
elif 'Limit vyčerpán' in r.content:
|
elif 'Limit vyčerpán' in r.text:
|
||||||
raise DownloadLimitExceeded
|
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')
|
# links = soup.find("a", {"id": "downlink"}).find_all('a')
|
||||||
link = soup.find(id="downlink")
|
link = soup.find(id="downlink")
|
||||||
# TODO: add settings for choice
|
# TODO: add settings for choice
|
||||||
|
|
Loading…
Reference in New Issue