Fixed podnapisi AttributeError

pull/2653/head v1.4.4-beta.42
morpheus65535 4 months ago
parent 4e365c6aa6
commit f6c5ee6bfc

@ -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

Loading…
Cancel
Save