mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-31 02:57:50 +08:00
Fixed AvistaZ and CinemaZ scraping when the Reseed notification is displayed
This commit is contained in:
parent
5582cc076d
commit
0fc334f731
1 changed files with 5 additions and 2 deletions
|
@ -5,7 +5,7 @@ from random import randint
|
|||
|
||||
import pycountry
|
||||
from requests.cookies import RequestsCookieJar
|
||||
from subliminal.exceptions import AuthenticationError
|
||||
from subliminal.exceptions import AuthenticationError, ProviderError
|
||||
from subliminal.providers import ParserBeautifulSoup
|
||||
from subliminal_patch.http import RetryingCFSession
|
||||
from subliminal_patch.pitcher import store_verification
|
||||
|
@ -354,7 +354,10 @@ class AvistazNetworkProviderBase(Provider):
|
|||
|
||||
def _parse_release_table(self, html):
|
||||
release_data_table = (ParserBeautifulSoup(html, ['html.parser'])
|
||||
.select_one('#content-area > div:nth-child(4) > div.table-responsive > table > tbody'))
|
||||
.select_one('#content-area > div.block > div.table-responsive > table > tbody'))
|
||||
|
||||
if release_data_table is None:
|
||||
raise ProviderError('Unexpected HTML page layout - no release data table found')
|
||||
|
||||
rows = {}
|
||||
for tr in release_data_table.find_all('tr', recursive=False):
|
||||
|
|
Loading…
Reference in a new issue