aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVitiko <[email protected]>2024-07-26 19:16:37 -0400
committerVitiko <[email protected]>2024-07-26 19:16:37 -0400
commit4a341869858103a60dccf712e70e6ad97f311a29 (patch)
tree1c8dc99b9b307b12481714cb5a1e885bf523dd11
parent8fe8eaf7dad6b1eccde9d0622e946e15acc43688 (diff)
downloadbazarr-4a341869858103a60dccf712e70e6ad97f311a29.tar.gz
bazarr-4a341869858103a60dccf712e70e6ad97f311a29.zip
SuperSubtitles: handle KeyError for movie searchesv1.4.4-beta.27
-rw-r--r--custom_libs/subliminal_patch/providers/supersubtitles.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/custom_libs/subliminal_patch/providers/supersubtitles.py b/custom_libs/subliminal_patch/providers/supersubtitles.py
index c3ecb06a3..cc7752925 100644
--- a/custom_libs/subliminal_patch/providers/supersubtitles.py
+++ b/custom_libs/subliminal_patch/providers/supersubtitles.py
@@ -455,7 +455,13 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin):
soup = ParserBeautifulSoup(r, ['lxml'])
tables = soup.find_all("table")
- tables = tables[0].find_all("tr")
+
+ try:
+ tables = tables[0].find_all("tr")
+ except IndexError:
+ logger.debug("No tables found for %s", url)
+ return []
+
i = 0
for table in tables: