Skip to content

Conversation

@PauloWgDev
Copy link
Contributor

went from using

  • lyricwikia (not longer supported)

to

  • lyriq (a supported library)

went from
- lyricwikia (not supported)
to
- lyriq (supported)
Copy link
Owner

@pwittchen pwittchen left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

In general, it looks fine, but you forgot to remove lyricwikia dependency from the requirements.txt and add there new lyriq dependency. Moreover, you can also remove section related to lyricwikia from the README.md, because it will be no longer needed after this change. I'm also wondering if these logging import and instructions are needed here.

lyrics = lyriq.get_lyrics(title, artist)

if lyrics is None:
# Lyrics not found
Copy link
Owner

Choose a reason for hiding this comment

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

this comment is not necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it

import textwrap
import datetime
from subprocess import Popen, PIPE
import logging
Copy link
Owner

Choose a reason for hiding this comment

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

is this import needed?

import lyriq

import lyricwikia
logging.getLogger("lyriq.lyriq").setLevel(logging.CRITICAL)
Copy link
Owner

Choose a reason for hiding this comment

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

is this call neded?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without it the lyriq library will print a 404 error when it does not found the song specified on it's database. So to make the logging more clean i added that call.

Copy link
Owner

Choose a reason for hiding this comment

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

ok

@PauloWgDev
Copy link
Contributor Author

I have push the changes to the requirements.txt and README.md

@pwittchen pwittchen merged commit 2f246a1 into pwittchen:develop Dec 3, 2025
0 of 4 checks passed
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.

2 participants