Skip to content

Add azlyrics and darklyrics fetchers - #650

Open
Silgrond wants to merge 1 commit into
ncmpcpp:masterfrom
Silgrond:add-new-lyrics-fetchers
Open

Silgrond wants to merge 1 commit into
ncmpcpp:masterfrom
Silgrond:add-new-lyrics-fetchers

Conversation

@Silgrond

Copy link
Copy Markdown

Adding two new lyrics sources from:

azlyrics.com and
darklyrics.com: A popular source for metal. Since DarkLyrics hosts full albums on a single page, I added a custom fetch and postProcess override to regex-match the specific song title and extract only the relevant lyrics from the album page.

Note: I am new to C++ and programming in general. Used an AI assistant (Gemini 3) to help me writing regex and structure the DarkLyricsFetcher logic. I have tested it locally and seem to fetch lyrics without issues. Thank you!

Comment thread src/lyrics_fetcher.h
{
virtual const char *name() const override { return "azlyrics.com"; }
protected:
virtual const char *regex() const override { return "(?s)<!-- Usage of azlyrics\\.com content.*?-->(.*?)</div>"; }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah, ncmpcpp used to have azlyrics fetcher, but matching on the message Usage of azlyrics.com content by any third-party lyrics provider is prohibited by our licensing agreement. Sorry about that to fetch lyrics for a third party provider (i.e. ncmpcpp) is not great, don't you think? That's why I removed it in the first place.

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