mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-10 08:47:52 +08:00
Another Possible fix for titulky provider
This commit is contained in:
parent
e7d7ad408e
commit
57c24a6e56
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue