I'm currently experiencing an error when trying to install this and Beenius. Not sure if I'm doing anything wrong. Both plugins are added to C:\Program Files (x86)\MusicBee\Plugins. Not sure if I'm doing something wrong or if the plugins are not working anymore?
They show up in MusicBee. When trying to enable them I get the same error:
"Unable to initialise plugin: *plugin_name*
"Exception has been thrown by the target of an invocation."
Hello,
I am trying to install this plugin but when I create the configuration file and start up MusicBee I get the following error.
An error occurred during Museexmatch startup: Access to the path 'C:\Program Files (x86)\MusicBee\Plugins\museexmatch.conf' is denied.
If I go into Preferences and try enabling the plugin, I get the following errors.
An error occurred during Museexmatch startup: 'System.Dynamic.ExapndoObject' does not contain a definition for 'body'
Unable to initialize this plugon: mb_Museexmatch.dll Exception has been thrown by the target of an invocation.
This only seems to happen when I have the configuration file. If I delete the configuration file, the plugin seems to work fine.
My configuration file is copied right from GitHub:
{
"allowedDistance": 5,
"delimiters": [ "&", ";", "," ],
"verifyAlbum": false,
"addLyricsSource": false,
"trimTitle": false
}
Can you tell me if there's something I'm doing wrong?
Thank you.
Hi @slonopot, I've just installed your Museexmatch plugin and got it up and running. It works well overall. However, it doesn't seem able to grab the lyrics for songs where I have text inside of [square brackets] in the ID3 song title of my MP3 file.
For example, I have these MP3s, which all have Artist = "Coldplay", and these song titles:
* Miracles (Someone Special)
* Something Just Like This [feat. The Chainsmokers]
* Princess Of China [feat. Rihanna]
I've set "trimTitle" = true in my conf file, like this:
{
"allowedDistance": 5,
"delimiters": [ "&", ";", "," ],
"verifyAlbum": false,
"addLyricsSource": false,
"trimTitle": true
}
My understanding is that trimTitle=true should remove whatever is inside square brackets in the song title, and only search Musixmatch using the remaining text. Therefore it should search for "Princess of China", for example, without including [feat. Rihanna] - is that not correct?
Yet the log file shows that it isn't doing this:
2023/11/08 23:11:53.448 | Debug | MusicBeePlugin.Plugin.RetrieveLyrics | source="", artist="Coldplay", title="Princess Of China [feat. Rihanna]", album="Mylo Xyloto", preferSynced=true, providerName="Musixmatch via Museexmatch"
2023/11/08 23:11:53.448 | Info | Museexmatch.MusixmatchClient.getLyrics | Attempting to search for "Coldplay" - "Princess Of China [feat. Rihanna]" ("Mylo Xyloto")
2023/11/08 23:11:53.448 | Debug | Museexmatch.MusixmatchClient.search | artist="Coldplay", title="Princess Of China [feat. Rihanna]", album="Mylo Xyloto"
2023/11/08 23:11:53.598 | Info | Museexmatch.MusixmatchClient.search | No results for this search
2023/11/08 23:11:53.598 | Info | Museexmatch.MusixmatchClient.getLyrics | Nothing found at all
Any idea why this is, and what I can do to improve it?
Hi @slonopot, I've just installed your Museexmatch plugin and got it up and running. It works well overall. However, it doesn't seem able to grab the lyrics for songs where I have text inside of [square brackets] in the ID3 song title of my MP3 file.
I'm not using this plugin, but just a thought giving this a brief look:
Perhaps do this?:
"delimiters": [ "[", "&", ";", "," ],
It should indeed and for an unknown reason it doesn't. Make sure to download the latest version again and replace mb_Musixmatch.dll, I've been moving stuff for both Beenius and Museexmatch back in the day and they should now be stored at %APPDATA%/MusicBee/Plugins/ (paste this into your path bar in explorer, by default it's Users/xyz/AppData/Roaming/MusicBee/Plugins/). trim_title is not a default option, maybe your configuration file was not loaded for some reason. Take a look at the first line of the log file, it will say if the configuration file was loaded and which options were applied. If the log states that the defaults were loaded, make sure your configuration file is in %APPDATA%/MusicBee/Plugins/ and that it's museexmatch.conf and not museexmatch.conf.txt or whatever. Ping me if the issue persists.
Thanks for the help! I double-checked everything and found the problem: I had not renamed "museexmatch.conf.template" to "museexmatch.conf" and therefore the configuration wasn't getting loaded. 🙈
Now it's fixed, and the log file shows that the configuration is indeed being loaded, and it's now correctly excluding text inside [square brackets].
One new thing I've noticed now as a consequence: it won't return a hit if the artist field contains a featured artist in square brackets on the Musixmatch website.
Example: I have an MP3 with artist = "Coldplay" and title = "Princess Of China [feat. Rihanna]". I prefer to put the "featured" artist into the title field, rather than the artist field, because I want the artist name to be consistent for all songs by that artist.
However, Museexmatch won't return any lyrics for this song. The log shows this:
2023/11/13 01:45:42.934 | Info | Museexmatch.MusixmatchClient..ctor | Configuration file was used: allowedDistance=5, delimiters="&", ";", ",", verifyAlbum=false, addLyricsSource=false, trimTitle=true
2023/11/13 01:46:16.202 | Debug | MusicBeePlugin.Plugin.RetrieveLyrics | source="", artist="Coldplay", title="Princess Of China [feat. Rihanna]", album="Mylo Xyloto", preferSynced=true, providerName="Musixmatch via Museexmatch"
2023/11/13 01:46:16.202 | Info | Museexmatch.MusixmatchClient.getLyrics | Attempting to search for "Coldplay" - "Princess Of China" ("Mylo Xyloto")
2023/11/13 01:46:16.202 | Debug | Museexmatch.MusixmatchClient.search | artist="Coldplay", title="Princess Of China", album="Mylo Xyloto"
2023/11/13 01:46:17.068 | Info | Museexmatch.MusixmatchClient.search | No results for this search
The search results at https://www.musixmatch.com/search/coldplay%20princess%20of%20china show that they have the artist field written as "Coldplay feat. Rihanna". Could that be why Museexmatch can't get a hit, because it doesn't match what I have in the artist field?
Having said that, the actual lyrics page at https://www.musixmatch.com/lyrics/Coldplay/Princess-of-China shows the artist as "Coldplay, Rihanna" - with a comma - which should mean that the delimiters config setting should separate the two artists, right?
Any idea why I don't get the lyrics for a situation like this?