From f6c5ee6bfcbe28c77380b417562ba4deba2c658a Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 4 Sep 2024 06:53:30 -0400 Subject: [PATCH] Fixed podnapisi AttributeError --- custom_libs/subliminal_patch/providers/podnapisi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_libs/subliminal_patch/providers/podnapisi.py b/custom_libs/subliminal_patch/providers/podnapisi.py index b13a47c4d..d20accb99 100644 --- a/custom_libs/subliminal_patch/providers/podnapisi.py +++ b/custom_libs/subliminal_patch/providers/podnapisi.py @@ -209,7 +209,8 @@ class PodnapisiProvider(_PodnapisiProvider, ProviderSubtitleArchiveMixin): break # exit if no results - if not xml.find('pagination/results').text or not int(xml.find('pagination/results').text): + if (not xml.find('pagination/results') or not xml.find('pagination/results').text or not + int(xml.find('pagination/results').text)): logger.debug('No subtitles found') break