1
0
Fork 0
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:
morpheus65535 2025-01-17 21:59:39 -05:00
parent 214b8153ae
commit 6fc6ca5ec2

View file

@ -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