Skip to content

Commit

Permalink
Fixed podnapisi AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Sep 4, 2024
1 parent 4e365c6 commit f6c5ee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_libs/subliminal_patch/providers/podnapisi.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def query(self, language, keyword, video, season=None, episode=None, year=None,
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

Expand Down

0 comments on commit f6c5ee6

Please sign in to comment.