Skip to content

Fix falso positive lyric pages for Tekstowo - #3905

Merged
sampsyo merged 3 commits into
beetbox:masterfrom
xhocquet:tekstowo-fix
Apr 12, 2021
Merged

Fix falso positive lyric pages for Tekstowo#3905
sampsyo merged 3 commits into
beetbox:masterfrom
xhocquet:tekstowo-fix

Conversation

@xhocquet

@xhocquet xhocquet commented Apr 11, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

@sampsyo

@sampsyo sampsyo left a comment

Copy link
Copy Markdown
Member

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?

Comment thread beetsplug/lyrics.py Outdated
find("div", class_="card"). \
find_all("div", class_="box-przeboje")

if len(song_rows) < 1:

Copy link
Copy Markdown
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.

Comment thread beetsplug/lyrics.py Outdated

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

Copy link
Copy Markdown
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 thread beetsplug/lyrics.py Outdated
Comment on lines +426 to +428
print('--------------------')
print(song_page_url)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ditto.

@sampsyo

sampsyo commented Apr 12, 2021

Copy link
Copy Markdown
Member

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