AIMP Forum

AIMP for PC => Вопросы / Questions => Topic started by: c0der on January 27, 2022, 19:16:10

Title: What options are there for the WebLyrics Plugin
Post by: c0der on January 27, 2022, 19:16:10
Hey guys.

The problem I am currently facing is that Genius introduced a html heading node directly before the beginning of the lyrics text "[Intro]" for example.

I wonder what options can be used in the weblyrics plugin for example:
- built-in commands (replace, trim, strleft, strpos, etc.)
- built-in variables (%value, %artist, etc.)
- filter options
- encodings and how they are processed
etc.

If I use my current config for example "Vossy Bop lyrics" will be written before "[Intro]" which is the content of the recently introduced html node from Genius.
If I take "<div data-lyrics-container" as LyricsPageTextStartTags parameter the plugin will include ""true" class="Lyrics__Container-sc-1ynbvzw-6 jYfhrf">" before the main lyrics start.

I hope there will be an answer on this so we can build a solution for this.
Best regards
Title: Re: What options are there for the WebLyrics Plugin
Post by: sveakul on January 29, 2022, 00:26:59
c0der I didn't see this post before I PM'd you today (and posted earlier) on the same issue.  What you propose here DOES work to kill the "(song title) lyrics" addition e.g.:

Code: [Select]
LyricsPageTextStartTags=<div data-lyrics-container="true" class="Lyrics__Container-sc-1ynbvzw-6 jYfhrf">
Using it now with AIMP.  As far as additional options and how they can be used, I hope we can get some helpful answers also.
Title: Re: What options are there for the WebLyrics Plugin
Post by: c0der on January 29, 2022, 03:39:19
Thank for your feedback. Since we can have multiple lyrics providers in the weblyrics.ini it's okay to have that node as lyrics start parameter. But it's not satisfying at all to know it might change up from time to time. It would work if the plugin would automatically detect the node end by searching for the next ">" from the LyricsTextStartTags parameter or if there's another way to do so.