summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-12-31 15:57:33 -0500
committerGitHub <[email protected]>2023-12-31 15:57:33 -0500
commitb11f8100ac81f07727b19e87da26defdbbeb55a0 (patch)
tree8046fcf5db31ba0e3b5be140fe70e541ac5d3ed1 /libs
parenta7b84df68bcfb9e7216ba01df336a083078351cb (diff)
downloadbazarr-b11f8100ac81f07727b19e87da26defdbbeb55a0.tar.gz
bazarr-b11f8100ac81f07727b19e87da26defdbbeb55a0.zip
Fixed podnapisi search results parsing error
Diffstat (limited to 'libs')
-rw-r--r--libs/subliminal_patch/providers/podnapisi.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class PodnapisiProvider(_PodnapisiProvider, ProviderSubtitleArchiveMixin):
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