Merge pull request #3905 from xhocquet/tekstowo-fix

Fix falso positive lyric pages for Tekstowo
This commit is contained in:
Adrian Sampson 2021-04-11 20:33:19 -04:00 committed by GitHub
commit 63ec2bf31e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -437,8 +437,14 @@ class Tekstowo(Backend):
except HTMLParseError:
return None
song_row = html.find("div", class_="content"). \
find_all("div", class_="box-przeboje")[0]
song_rows = html.find("div", class_="content"). \
find("div", class_="card"). \
find_all("div", class_="box-przeboje")
if not song_rows:
return None
song_row = song_rows[0]
if not song_row:
return None

View file

@ -353,6 +353,8 @@ Fixes:
:bug:`3870`
* Allow equals within ``--set`` value when importing.
:bug:`2984`
* :doc:`/plugins/lyrics`: Fix crashes for Tekstowo false positives
:bug:`3904`
For plugin developers: