Author Topic: LyricsReloaded (Latest)  (Read 64645 times)

aaaaaaa

  • Newbie
  • *
  • Posts: 2
Well im sorry for the misspelling as english is not my native language
my music file looks like this

So the engine uses double artist for searching
Code
19/10/2023 10:17:37 [DEBUG] Lyrics request: Imagine Dragons - Imagine Dragons - Sucker For Pain -  - Google
19/10/2023 10:17:37 [INFO] Google tries to load the lyrics...
19/10/2023 10:17:37 [DEBUG] The constructed URL: https://www.google.com/search?q=imagine dragons - sucker for pain+lyrics

19/10/2023 10:17:37 [DEBUG] Lyrics request: Imagine Dragons - Imagine Dragons - Sucker For Pain -  - Genius
19/10/2023 10:17:37 [INFO] Genius tries to load the lyrics...
19/10/2023 10:17:37 [DEBUG] The constructed URL: https://genius.com/imagine-dragons-imagine-dragons-sucker-for-pain-lyrics

19/10/2023 10:17:37 [DEBUG] Lyrics request: Imagine Dragons - Imagine Dragons - Sucker For Pain -  - Musixmatch
19/10/2023 10:17:37 [INFO] Musixmatch tries to load the lyrics...
19/10/2023 10:17:37 [DEBUG] The constructed URL: http://www.musixmatch.com/lyrics/imagine-dragons/imagine-dragons-sucker-for-pain

19/10/2023 10:17:37 [DEBUG] Lyrics request: Imagine Dragons - Imagine Dragons - Sucker For Pain -  - Deezer
19/10/2023 10:17:37 [INFO] Deezer tries to load the lyrics...

19/10/2023 10:17:37 [DEBUG] Lyrics request: Imagine Dragons - Imagine Dragons - Sucker For Pain -  - Metal Archives
19/10/2023 10:17:37 [INFO] Metal Archives tries to load the lyrics...
19/10/2023 10:17:37 [DEBUG] The constructed google identity URL: https://www.google.com/search?q=Metal Archives+Imagine_Dragons+Imagine Dragons - Sucker For Pain+

19/10/2023 10:17:37 [DEBUG] Lyrics request: Imagine Dragons - Imagine Dragons - Sucker For Pain -  - Genius (fuzzy)
19/10/2023 10:17:37 [INFO] Genius (fuzzy) tries to load the lyrics...
19/10/2023 10:17:37 [DEBUG] The constructed identity URL: https://www.deezer.com/search/imagine dragons - sucker for pain+imagine dragons/track
19/10/2023 10:17:37 [DEBUG] The constructed identity URL: https://www.deezer.com/search/imagine dragons - sucker for pain+imagine dragons/track
19/10/2023 10:17:37 [DEBUG] The constructed identity URL: https://www.google.com/search?q=Genius+imagine dragons - sucker for pain+imagine dragons

19/10/2023 10:17:37 [DEBUG] Lyrics request: Imagine Dragons - Imagine Dragons - Sucker For Pain -  - Deezer (fuzzy)
19/10/2023 10:17:37 [INFO] Deezer (fuzzy) tries to load the lyrics...
19/10/2023 10:17:37 [DEBUG] The constructed identity URL: https://www.google.com/search?q=Deezer+imagine dragons - sucker for pain+imagine dragons
19/10/2023 10:17:37 [FAIL] no lyrics found from Genius
19/10/2023 10:17:37 [FAIL] no lyrics found from Musixmatch
19/10/2023 10:17:37 [WARN] The pattern class="BNeawe tAd8D AP7Wnd">(?<lyrics>.*)Source: didn't match!
19/10/2023 10:17:37 [FAIL] no lyrics found from Google
19/10/2023 10:17:37 [DEBUG] The constructed lyrics URL: https://genius.com/Lil-wayne-wiz-khalifa-imagine-dragons-logic-and-ty-dolla-sign-sucker-for-pain-lyrics
19/10/2023 10:17:37 [WARN] The google identity pattern (?<identity>https://www.metal-archives.com/albums/Imagine_Dragons/.*?)["&] didn't match!
19/10/2023 10:17:37 [FAIL] no lyrics found from Metal Archives
19/10/2023 10:17:38 [DEBUG] The constructed lyrics URL: https://www.deezer.com/en/track/127247963
19/10/2023 10:17:39 [WARN] The identity pattern "SNG_ID":"(?<identity>\d+)","PRODUCT_TRACK_ID":"\d+","UPLOAD_ID":\d+,"SNG_TITLE":"imagine dragons - sucker for pain","ART_ID":"\d+","PROVIDER_ID":"\d+","ART_NAME":"imagine dragons" didn't match!
19/10/2023 10:17:39 [FAIL] no lyrics found from Deezer
19/10/2023 10:17:39 [SUCCESS] lyrics found from Deezer (fuzzy)!
19/10/2023 10:17:40 [SUCCESS] lyrics found from Genius (fuzzy)!
i hope there is a way to exclude artist name from being used in search because some songs cant be found, otherwise i think i have to remove the names from my music files

frankz

  • Sr. Member
  • ****
  • Posts: 3868
The solution isn't to remove the artist names from your artist tags, the solution is to remove the artist names from your title tags.  They don't belong there.

BillH

  • Jr. Member
  • **
  • Posts: 123
I need help with installing the new version of Lyrics reloaded.

Following the instructions, I tried to install it from MusicBee -> Edit -> Preferences -> Plugins -> Add Plugin.  There is no Add Plugin option (I'm assuming that is because I already have an older version installed).

So I thought maybe I had to uninstall the old version to install the new version.  I clicked on Uninstall and got the following error:

MusicBee v3.5.8692.38789D  (Win10.0), 24 Oct 2023 21:56:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.Plugin.Uninstall()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at #=z5JnFeWoWZ2oEgm8XZw==.#=zEJ5XCz4=()

Am I doing something wrong?

Thanks,
Bill


Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1084
  • Heal The World
Can't give a detailed response right now, but:

I am aware that the uninstall function doesn't play well with this plugin.
I have briefly looked at it before but couldn't pinpoint if the issue was on the plugin's side or MusicBee's - I will revisit this some other time.

For now, go straight to the plugin's folder in Windows Explorer and delete it (you appear to be using the installer version - refer to this thread to locate the plugins folder)
After deleting it, you should be able to add the new plugin version using the 'add plugin' button at the top right of this screenshot:

I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.

BillH

  • Jr. Member
  • **
  • Posts: 123
For now, go straight to the plugin's folder in Windows Explorer and delete it (you appear to be using the installer version - refer to this thread to locate the plugins folder)
After deleting it, you should be able to add the new plugin version using the 'add plugin' button at the top right of this screenshot:


Thanks Mayibongwe,  that worked.

Thanks,
Bill
Last Edit: October 25, 2023, 06:36:54 PM by BillH

GermanKiwi

  • Newbie
  • *
  • Posts: 17
Hi, would someone be kind enough to help me create a .yml provider file for https://www.songtexte.com please? I find it to be a really great source of lyrics, but I don't quite understand how to create the .yml file correctly. :)

boroda

  • Sr. Member
  • ****
  • Posts: 4669
I am aware that the uninstall function doesn't play well with this plugin.
I have briefly looked at it before but couldn't pinpoint if the issue was on the plugin's side or MusicBee's - I will revisit this some other time.

none of my plugins have any issues with the Uninstall() plugin function. but keep in mind that you can only delete some resources used by the plugin (e.g. settings file) inside this function. Clicking the "uninstall" button in MB prefs won't delete the plugin itself.

though Steven promised to solve this issue in MB 3.6

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1084
  • Heal The World
none of my plugins have any issues with the Uninstall() plugin function. but keep in mind that you can only delete some resources used by the plugin (e.g. settings file) inside this function. Clicking the "uninstall" button in MB prefs won't delete the plugin itself.

though Steven promised to solve this issue in MB 3.6
Thanks for the insights, man.
After reading your post above and point #2 discussed here, I realized the flaw in reloaded's uninstall() function.
That's now fixed and I can confirm that MB v3.6 does indeed delete the .dll on restart.
I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1084
  • Heal The World
Hi, would someone be kind enough to help me create a .yml provider file for https://www.songtexte.com please?
I find it to be a really great source of lyrics.
The website mentioned that it sources its lyrics from Musixmatch - a provider that already comes bundled with the plugin.
But I suppose that's already the case with most of the optional providers in that zip file. So, I've decided to add it anyway:

Code
name: Songtexte
loader: search

variables:
    artist:
        type: artist
        filters:
        - lowercase
        - [regex, '\s', "-"]
        
    title:
        type: title
        filters: artist

config:
    identity url: "https://www.google.com/search?q=site:songtexte.com+{title}+{artist}"
    identity pattern: ['(?<identity>https://www.songtexte.com/songtext/{artist}/{title}-.*?\.html)', 's']
    lyrics url: ""
    lyrics pattern: ['<div id="lyrics">(?<lyrics>.*)<p id="artistCopyright', 's']

post-filters:
- [regex, '<br />[\s\S]<div id=[\s\S]*?</script>[\s\S]<br />', '']
- strip_html
- utf8_encode
- entity_decode
I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.

GermanKiwi

  • Newbie
  • *
  • Posts: 17
The website mentioned that it sources its lyrics from Musixmatch - a provider that already comes bundled with the plugin.
But I suppose that's already the case with most of the optional providers in that zip file. So, I've decided to add it anyway:

Thanks so much! I really appreciate that. :)

...For some reason, it's adding 5 empty lines at the end of the lyrics for every song. Any idea why?
Last Edit: November 05, 2023, 11:16:19 PM by GermanKiwi

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1084
  • Heal The World
...For some reason, it's adding 5 empty lines at the end of the lyrics for every song. Any idea why?
Haven't been able to reproduce that on the songs I've tested this with.
Any specific song we can have a look at?
I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.

GermanKiwi

  • Newbie
  • *
  • Posts: 17
Haven't been able to reproduce that on the songs I've tested this with.
Any specific song we can have a look at?

That's certainly interesting! I have this problem with literally every single song, and I've tested several dozen so far.

Here's just one example: the song "A Head Full of Dreams" by Coldplay.

Here is the lyrics page - there are no extra line breaks or empty lines at the end:

https://www.songtexte.com/songtext/coldplay/a-head-full-of-dreams-3b679004.html

And here's how it looks in MusicBee after importing the lyrics with your yml file - note the 5 empty lines below the last line of text. You can see my mouse cursor on the last empty line there:



In case it helps, here's what I'm doing: on the Music tab in MusicBee, I right click on a song, select "Auto-Tag by Track", then "Update Missing Lyrics".
Last Edit: November 06, 2023, 10:26:57 PM by GermanKiwi

GermanKiwi

  • Newbie
  • *
  • Posts: 17
...And a related question, if I may:

The yml file you created for songtexte.com uses a Google search for the "identity url".

You once wrote in another post, that using a Google search for the identity url has "a side effect in which songs that aren't available on the website, would return incorrect lyrics instead."

Could that be a possible risk with the songtexte yml file you've created? Would it be more accurate to use an identity url based on the songtexte.com url instead?

Sorry if this is a silly question...

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1084
  • Heal The World
That's certainly interesting! I have this problem with literally every single song, and I've tested several dozen so far.
Weird one for sure. Below is what I've been seeing all along - there aren't any line breaks:


After experimenting with inserting the lyrics source at the bottom, the line breaks are now showing up:


Inserting - [regex, '\n\n+(?!\w)', ''] at the end of the yml should fix it. I will make the correction on the uploaded file later on.

Could that be a possible risk with the songtexte yml file you've created?
Would it be more accurate to use an identity url based on the songtexte.com url instead?
Thumbs up for also picking that up. I will also correct that.
I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.

sveakul

  • Sr. Member
  • ****
  • Posts: 2493
The website mentioned that it sources its lyrics from Musixmatch - a provider that already comes bundled with the plugin.
But I suppose that's already the case with most of the optional providers in that zip file. So, I've decided to add it anyway:

Thanks so much! I really appreciate that. :)

...For some reason, it's adding 5 empty lines at the end of the lyrics for every song. Any idea why?
I'm not trying to be "Scrooge," but is there any reason using the existing Musixmatch plugin isn't good enough for you when Mayibongwe has already indicated that this is where "songtexte" is getting its lyrics from?  There is also the "Museexmatch" API-based plugin that can be used simultaneously with his Musixmatch yml version.