From 6fc6ca5ec20138d52e1c2637b9f291af7a2c0b7c Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Fri, 17 Jan 2025 21:59:39 -0500 Subject: [PATCH] Fixed podnapisi TypeError since we've merged #2790. --- custom_libs/subliminal_patch/providers/podnapisi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_libs/subliminal_patch/providers/podnapisi.py b/custom_libs/subliminal_patch/providers/podnapisi.py index c4ec284c0..4309a8a91 100644 --- a/custom_libs/subliminal_patch/providers/podnapisi.py +++ b/custom_libs/subliminal_patch/providers/podnapisi.py @@ -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