From 4df822d363b448b98000b6c4c6de054d8faa45e4 Mon Sep 17 00:00:00 2001 From: saddfox Date: Thu, 12 Dec 2024 03:58:32 +0100 Subject: Fixed podnapisi not returning results --- custom_libs/subliminal_patch/providers/podnapisi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_libs/subliminal_patch/providers/podnapisi.py b/custom_libs/subliminal_patch/providers/podnapisi.py index d20accb99..5785570e1 100644 --- a/custom_libs/subliminal_patch/providers/podnapisi.py +++ b/custom_libs/subliminal_patch/providers/podnapisi.py @@ -209,7 +209,7 @@ class PodnapisiProvider(_PodnapisiProvider, ProviderSubtitleArchiveMixin): break # exit if no results - if (not xml.find('pagination/results') or not xml.find('pagination/results').text or not + if (xml.find('pagination/results') is None or not xml.find('pagination/results').text or not int(xml.find('pagination/results').text)): logger.debug('No subtitles found') break -- cgit v1.2.3