1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 09:37:25 +00:00

Merge pull request #1246 from GiK986/development

Fix search row BeautifulSoup CSS selector
This commit is contained in:
morpheus65535 2021-01-25 13:12:35 -05:00 committed by GitHub
commit 5d0da41e27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ class YavkaNetProvider(Provider):
# Search on first 25 rows only
for row in rows[:25]:
element = row.find('a', {'class': 'selector'})
element = row.select_one('a.balon, a.selector')
if element:
link = element.get('href')
notes = re.sub(r'(?s)<p.*><img [A-z0-9=\'/\. :;#]*>(.*)</p>', r"\1", element.get('content'))