SuperSubtitles: handle KeyError for movie searches

pull/2595/head v1.4.4-beta.27
Vitiko 4 months ago
parent 8fe8eaf7da
commit 4a34186985

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

Loading…
Cancel
Save