diff options
author | Vitiko <[email protected]> | 2024-07-26 19:16:37 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2024-07-26 19:16:37 -0400 |
commit | 4a341869858103a60dccf712e70e6ad97f311a29 (patch) | |
tree | 1c8dc99b9b307b12481714cb5a1e885bf523dd11 | |
parent | 8fe8eaf7dad6b1eccde9d0622e946e15acc43688 (diff) | |
download | bazarr-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.py | 8 |
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: |