diff --git a/libs/subliminal_patch/providers/podnapisi.py b/libs/subliminal_patch/providers/podnapisi.py index 2cf80a4cc..18131ff52 100644 --- a/libs/subliminal_patch/providers/podnapisi.py +++ b/libs/subliminal_patch/providers/podnapisi.py @@ -209,7 +209,7 @@ def query(self, language, keyword, video, season=None, episode=None, year=None, break # exit if no results - if not int(xml.find('pagination/results').text): + if not xml.find('pagination/results') or not int(xml.find('pagination/results').text): logger.debug('No subtitles found') break