mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-22 13:53:11 +08:00
subssabbz: Small fix (#380)
provider selects wrong link and raise a exception: ValueError: Not a valid archive
This commit is contained in:
parent
f9aae9e10d
commit
2eeedd5efa
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class SubsSabBzProvider(Provider):
|
||||||
for row in rows[:10]:
|
for row in rows[:10]:
|
||||||
a_element_wrapper = row.find('td', { 'class': 'c2field' })
|
a_element_wrapper = row.find('td', { 'class': 'c2field' })
|
||||||
if a_element_wrapper:
|
if a_element_wrapper:
|
||||||
element = row.find('a')
|
element = a_element_wrapper.find('a')
|
||||||
if element:
|
if element:
|
||||||
link = element.get('href')
|
link = element.get('href')
|
||||||
logger.info('Found subtitle link %r', link)
|
logger.info('Found subtitle link %r', link)
|
||||||
|
|
Loading…
Reference in a new issue