mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-22 06:48:45 +00:00
Fixed podnapisi TypeError since we've merged #2790.
This commit is contained in:
parent
214b8153ae
commit
6fc6ca5ec2
1 changed files with 4 additions and 4 deletions
|
@ -204,12 +204,12 @@ class PodnapisiProvider(_PodnapisiProvider, ProviderSubtitleArchiveMixin):
|
|||
# query the server
|
||||
content = None
|
||||
try:
|
||||
content = self.session.get(self.server_url + 'search/old', params=params, timeout=30).content
|
||||
xml = etree.fromstring(content)
|
||||
content = self.session.get(self.server_url + 'search/old', params=params, timeout=30)
|
||||
xml = etree.fromstring(content.content)
|
||||
except etree.ParseError:
|
||||
if '429 Too Many Requests' in content:
|
||||
if '429 Too Many Requests' in content.text:
|
||||
raise TooManyRequests
|
||||
logger.error("Wrong data returned: %r", content)
|
||||
logger.error("Wrong data returned: %r", content.text)
|
||||
break
|
||||
|
||||
# exit if no results
|
||||
|
|
Loading…
Reference in a new issue