-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Added method to fetch lyrics from AZLyrics or Genius as a fallback #1251
base: dev
Are you sure you want to change the base?
Conversation
Helps to fetch lyrics from azlyrics website
Spotify lyrics for many songs are not available for non-premium users. Now, it will fetch unsynced lyrics from Azlyrics as a fallback.
Now it will adapt to dynamic changes in the URL parameters. Additionally, it will remove extra spaces from the beginning of the lyrics.
Also, results are not that great. Hardly shows up for tracks except US/UK/ES one's |
Genius requires an access token to use its official API. Also, the results are not always correct when using its API to search for a song (for example, FE!N by Travis Scott), and it might hit Error 429 if a user requests too many times. So, scraping the lyrics from a website is a better way to fetch the lyrics. I'll try my luck scraping the website if that doesn't violate their TOS. |
This way, users don't require genius API access tokens.
Now, it will fetch lyrics from genius.com if they're not found on AZLyrics.
Spotify's official lyrics for many songs are not available for non-premium users. So, both synced and unsynced lyrics tabs will throw an error. But, now, it will fetch the unsynced lyrics of the currently playing track from Azlyrics as a fallback.
It uses the raw lyrics from the website, with no formatting or cleanups. So, for that reason, some non-UTF characters will break when it is rendered on the lyrics tab.