Skip to content
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

Merged
merged 3 commits into from
Apr 12, 2021

Conversation

xhocquet
Copy link
Contributor

@xhocquet xhocquet commented Apr 11, 2021

Description

Fixes #3904

Did mange to reproduce the specific error the user saw

To Do

  • Changelog. (Add an entry to docs/changelog.rst near the top of the document.)

@xhocquet
Copy link
Contributor Author

@sampsyo

Copy link
Member

@sampsyo sampsyo left a 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?

find("div", class_="card"). \
find_all("div", class_="box-przeboje")

if len(song_rows) < 1:
Copy link
Member

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.

@@ -416,12 +416,16 @@ class Tekstowo(Backend):

def fetch(self, artist, title):
url = self.build_url(title, artist)
print(url)
Copy link
Member

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.

Comment on lines 426 to 428
print('--------------------')
print(song_page_url)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@sampsyo
Copy link
Member

sampsyo commented Apr 12, 2021

Looks good to me! I'll merge this now, but happy to hear from @njelich if they get a chance to try it out.

@sampsyo sampsyo merged commit 63ec2bf into beetbox:master Apr 12, 2021
@xhocquet xhocquet deleted the tekstowo-fix branch April 16, 2021 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lyrics plugin crashing on tekstowo.pl
2 participants