summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-09-04 06:53:30 -0400
committermorpheus65535 <[email protected]>2024-09-04 06:53:30 -0400
commitf6c5ee6bfcbe28c77380b417562ba4deba2c658a (patch)
treeb283296bdc0342df62d55d9d65b3601fbc1660ce
parent4e365c6aa6f7e0786d8ceefdaa91099da59431f1 (diff)
downloadbazarr-f6c5ee6bfcbe28c77380b417562ba4deba2c658a.tar.gz
bazarr-f6c5ee6bfcbe28c77380b417562ba4deba2c658a.zip
Fixed podnapisi AttributeErrorv1.4.4-beta.42
-rw-r--r--custom_libs/subliminal_patch/providers/podnapisi.py3
1 files changed, 2 insertions, 1 deletions
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