mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-22 07:42:32 +00:00
SuperSubtitles: handle KeyError for movie searches
This commit is contained in:
parent
8fe8eaf7da
commit
4a34186985
1 changed files with 7 additions and 1 deletions
|
@ -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…
Reference in a new issue