-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix falso positive lyric pages for Tekstowo #3905
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome; thanks for looking into this! Here are a couple of comments.
@njelich, maybe you'd like to try this out and see if it fixes your problem?
beetsplug/lyrics.py
Outdated
find("div", class_="card"). \ | ||
find_all("div", class_="box-przeboje") | ||
|
||
if len(song_rows) < 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not song_rows
should be equivalent.
beetsplug/lyrics.py
Outdated
@@ -416,12 +416,16 @@ class Tekstowo(Backend): | |||
|
|||
def fetch(self, artist, title): | |||
url = self.build_url(title, artist) | |||
print(url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like stray debugging lines.
beetsplug/lyrics.py
Outdated
print('--------------------') | ||
print(song_page_url) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
Looks good to me! I'll merge this now, but happy to hear from @njelich if they get a chance to try it out. |
Description
Fixes #3904
Did mange to reproduce the specific error the user saw
To Do
docs/changelog.rst
near the top of the document.)