Genre Finder 5.0 - Updated 05/08/2012

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Genre Finder 5.0 - Updated 05/08/2012

Re: Genre Finder 5.0 - Updated 05/08/2012

by sterlingm » Fri Mar 27, 2020 10:20 am

It looks like something else is going on with this script. It stopped working for me as well. I've got no new genres found for a while now.
Maybe lastfm made some sort of change on the backend to stop talking to outside requests?
-Sterling

Re: Genre Finder 5.0 - Updated 05/08/2012

by zombiefly » Thu Mar 26, 2020 7:18 am

hi,
could someone please send me the fully modified script? i've done all the changes but it's still finding nothing at all. Total confusion with the amount of posts here containing tweaks, so if there is anyone who has it working so i can select multiple files and have it pop up suggestions for genre, i'd much appreciate it.

Re: Genre Finder 5.0 - Updated 05/08/2012

by sterlingm » Sat Mar 07, 2020 10:34 am

If you go to Tools-Options-Library-GenreFinder Section, Update Lists and click the HELP button it provides the answer.

According to the screen that pops up in a White list you use 'Value=Translation'

If this is accurate then you would simply write as part of the white list 'Synthpop=Synth-Pop', 'Synth Pop=Synth-Pop'. There are ways to use wildcard expressions for simpler matching. It's in the HELP screen.

Hope this is useful. I like this extension also but last.fm genres seem to be all over the place. People have different ideas of what song is what genre. The downsides of crowd sourcing. It has strengths and weaknesses.

I found this very interesting blog post from 2009:
https://tippopotamus.blogspot.com/2009/ ... is-it.html
Had to use the way back machine to get the original 25 genres referenced at the end of the post.

It's a good start. I'm beginning to think the fewer genres the better. There are 191 id3 v1 official genres.
https://eyed3.readthedocs.io/en/latest/ ... ml#example

That's quite a lot. But I'm not gonna tell people how to classify their music.

My concern is that cleaning up the all the unusual genres pulled from last.fm after running this against my library will take more time than just manually editing to a shorter list with a few sub-categories.

Good luck.
-Sterling


Grantman wrote:
Fri Mar 06, 2020 6:38 pm
Can you transform looked up values without keeping whitelist fully populated with all possible genre values?

I apologize in advance if I missed how to make this work. I read through the entire thread and have tried several different iterations and could not accomplish a simple transform of values.

I am doing this in a test environment where I only loaded a handful of Depeche Mode tracks into a brand new install... so nothing has been added to the database previously other than the testing tracks to work out my configuration for Genre Finder. I have 3 full Depeche Mode albums fully tagged (except Genre) added to Media Monkey. Two albums are all FLAC files, one is all MP3 files. These are the only tracks in the database. -- Latest version of MediaMonkey GOLD. -- New Genre Finder install. --No existing Genre values in database.

Here is the simple example:

I select all the tracks from Depeche Mode (all 3 full albums) and limit Genre Finder to the top 5 genre results - which returns the following:

Electronic
New Wave
80s
Synthpop
Synth Pop

PERFECT! ... except I want to use the genre "Synth-Pop". :( -- How do I transform "Synthpop" & "Synth Pop" into "Synth-Pop"?

I have gone through a formal testing of every iteration I could come up with using each list type (NONE, KEEP, WHITE, BLACK). I tried simple "Synthpop=Synth-Pop" as well as "+". I read through the entire forum thread for Genre Finder.

The script is working but I can't figure out the logic of how configure for transforming the two values into "Synth-Pop" while also keeping the other 3 values... and without putting those values in the white list before running the script. (It works fine if I populate the white list first.)

The issue is I don't want to pre-populate the white list. I welcome possible new Genre values I may not consider in advance and don't want to prevent those values from being available because I did not put them in the white list. I just want to add rules to clean up messy or overlapping looked up Genre values.

Is there an approach where you just transform looked up Genre values without having to populate a white list?

Regardless of this issue... this script is awesome. Been using MediaMonkey since late 90's (GOLD of course) and I have pretty extensive customizations, scripts... etc. I can't believe how fast it runs and how much is provided for customization. GREAT JOB!!!

Hopefully I just missed the logic needed to transform looked up values without specifying genre values in advance in a white list. :)

Any help is appreciated.

Re: Genre Finder 5.0 - Updated 05/08/2012

by sterlingm » Sat Mar 07, 2020 10:12 am

I found the answer to the white/black list issue below.

Go to Tools-Options. Under Library there is a GenreFinder Settings section. Under the Update List sub-section click the HELP button in the upper right next to Save and Load. This provides detailed instructions.

-Sterling
sterlingm wrote:
Tue Mar 03, 2020 7:12 am
The question I have is where? Where do you edit the script to include the whitelist/blacklist?

I did not see any comment section that says "Edit this line for whitelist." Also I read page "12" of this thread and it would be helpful if there was an actual line of code example showing how the whitelist/blacklist is to be written in the code.

I've done programming before and there is a steep learning curve for this script mostly due to documentation issues.

The script is a great idea, and clearly they have put a lot of time into it, but it could definitely use a refresh. Especially since databases other than lastfm are out there. It'd be nice if this could compare across disclog, musicbrainz, and lastfm and choose the consensus instead of just the one.

I got a genre of "Deadpool" for one of my tracks. I'm pretty sure Deadpool is not a genre.

Anywho.... very nice script but it needs some polish. I wish I was better at vbs. Many of the autotaggers out there want you to update ALL TAGS, whereas, I just need the genre. Everything is good. (mostly) AcousticID is next, but again can't just do one tag without affecting the others.

Any MM add-ons that calculate the AcousticID of a track and update it? I haven't seen any. Is MusicIP even still used? Too many questions, I know.

Whitelist/Blacklist - how?

Thanks.
-Sterling

Re: Genre Finder 5.0 - Updated 05/08/2012

by Grantman » Fri Mar 06, 2020 6:38 pm

Can you transform looked up values without keeping whitelist fully populated with all possible genre values?

I apologize in advance if I missed how to make this work. I read through the entire thread and have tried several different iterations and could not accomplish a simple transform of values.

I am doing this in a test environment where I only loaded a handful of Depeche Mode tracks into a brand new install... so nothing has been added to the database previously other than the testing tracks to work out my configuration for Genre Finder. I have 3 full Depeche Mode albums fully tagged (except Genre) added to Media Monkey. Two albums are all FLAC files, one is all MP3 files. These are the only tracks in the database. -- Latest version of MediaMonkey GOLD. -- New Genre Finder install. --No existing Genre values in database.

Here is the simple example:

I select all the tracks from Depeche Mode (all 3 full albums) and limit Genre Finder to the top 5 genre results - which returns the following:

Electronic
New Wave
80s
Synthpop
Synth Pop

PERFECT! ... except I want to use the genre "Synth-Pop". :( -- How do I transform "Synthpop" & "Synth Pop" into "Synth-Pop"?

I have gone through a formal testing of every iteration I could come up with using each list type (NONE, KEEP, WHITE, BLACK). I tried simple "Synthpop=Synth-Pop" as well as "+". I read through the entire forum thread for Genre Finder.

The script is working but I can't figure out the logic of how configure for transforming the two values into "Synth-Pop" while also keeping the other 3 values... and without putting those values in the white list before running the script. (It works fine if I populate the white list first.)

The issue is I don't want to pre-populate the white list. I welcome possible new Genre values I may not consider in advance and don't want to prevent those values from being available because I did not put them in the white list. I just want to add rules to clean up messy or overlapping looked up Genre values.

Is there an approach where you just transform looked up Genre values without having to populate a white list?

Regardless of this issue... this script is awesome. Been using MediaMonkey since late 90's (GOLD of course) and I have pretty extensive customizations, scripts... etc. I can't believe how fast it runs and how much is provided for customization. GREAT JOB!!!

Hopefully I just missed the logic needed to transform looked up values without specifying genre values in advance in a white list. :)

Any help is appreciated.

Re: Genre Finder 5.0 - Updated 05/08/2012

by sterlingm » Tue Mar 03, 2020 7:12 am

The question I have is where? Where do you edit the script to include the whitelist/blacklist?

I did not see any comment section that says "Edit this line for whitelist." Also I read page "12" of this thread and it would be helpful if there was an actual line of code example showing how the whitelist/blacklist is to be written in the code.

I've done programming before and there is a steep learning curve for this script mostly due to documentation issues.

The script is a great idea, and clearly they have put a lot of time into it, but it could definitely use a refresh. Especially since databases other than lastfm are out there. It'd be nice if this could compare across disclog, musicbrainz, and lastfm and choose the consensus instead of just the one.

I got a genre of "Deadpool" for one of my tracks. I'm pretty sure Deadpool is not a genre.

Anywho.... very nice script but it needs some polish. I wish I was better at vbs. Many of the autotaggers out there want you to update ALL TAGS, whereas, I just need the genre. Everything is good. (mostly) AcousticID is next, but again can't just do one tag without affecting the others.

Any MM add-ons that calculate the AcousticID of a track and update it? I haven't seen any. Is MusicIP even still used? Too many questions, I know.

Whitelist/Blacklist - how?

Thanks.
-Sterling

Re: Genre Finder 5.0 - Updated 05/08/2012

by jcfogerty » Thu Nov 29, 2018 6:15 am

This wiki page lists all 191 genres as of Winamp 5.6.

Has anyone been successful in loading them all into genre finder and then whitelist/blacklist from it?

Re: Genre Finder 5.0 - Updated 05/08/2012

by karl10247 » Thu Oct 18, 2018 9:06 pm

Does anyone know if there is a way to include a logic string to avoid certain values appearing together?

E.g. Green day. Top values on last.fm include *punk* of various varieties and *alternative* of various varieties.

I do not want these two values to appear together so looking to do some sort of logic to avoid e.g. IF(NOT(*Genre=*punk*,*alternative*) or whatever....

Yes i could painstakingly run with several white lists but im tagging 14k songs and want to automate as much as possible

Re: Genre Finder 5.0 - Updated 05/08/2012

by soulpatchguy » Mon Mar 26, 2018 3:32 am

Just upgraded from Windows 7 to Windows 10 and "Show toolbar button" doesn't seem to work.

Re: Genre Finder 5.0 - Updated 05/08/2012

by mhendu » Sun Nov 05, 2017 4:31 pm

Minimum match is also not working - you need to edit line 820 (assuming you've made my edit) to say the following:

cnt = FixCount(ele.ChildNodes.Item(0).Text)

Re: Genre Finder 5.0 - Updated 05/08/2012

by mhendu » Sun Nov 05, 2017 3:47 pm

Darryl_Gittins wrote:Close MediaMonkey.

Open this file in notepad:
C:\Users\USERNAME\AppData\Roaming\MediaMonkey\Scripts\Auto\GenreFinder.vbs

Find this line:
str = FixGenre(ele.ChildNodes.Item(0).Text)

Change it to this:
str = FixGenre(ele.ChildNodes.Item(1).Text)

(The 0 changes to a 1).

Restart MediaMonkey.
Making this change will work for track and artist mode but not for album mode. To get all three modes working you should replace row 800 with the following:

If left(FixGenre(ele.ChildNodes.Item(1).Text),24) = "Https://www.last.fm/tag/" Then
str = FixGenre(ele.ChildNodes.Item(0).Text)
Else
str = FixGenre(ele.ChildNodes.Item(1).Text)
End If

I'm sure there's a more elegant solution but this works for me.

Re: Genre Finder 5.0 - Updated 05/08/2012

by Panchdara » Sun Jul 30, 2017 3:01 am

well... this script seems to be a total waste of time... uninstalled. AND, you need to edit the Scripts.ini file to REMOVE the genrefiner lines. Seems a hack to me. :(

Re: Genre Finder 5.0 - Updated 05/08/2012

by randomspam » Wed Jun 14, 2017 7:05 am

Darryl_Gittins wrote:Close MediaMonkey.

Open this file in notepad:
C:\Users\USERNAME\AppData\Roaming\MediaMonkey\Scripts\Auto\GenreFinder.vbs

Find this line:
str = FixGenre(ele.ChildNodes.Item(0).Text)

Change it to this:
str = FixGenre(ele.ChildNodes.Item(1).Text)

(The 0 changes to a 1).

Restart MediaMonkey.
Thanks for the suggestion, I was amazed to see such a recent reply on the thread. Sadly it's still not quite right, for me at least.

Before this change I had the same issue as everyone else, it would say it was successful but nothing would change. Now that I've made the edit as you suggested it updates the Genre but appears to be completely random. I can select one album and it will bring back 12 different genres, one for each track and many of them clearly incorrect.

Re: Genre Finder 5.0 - Updated 05/08/2012

by Darryl_Gittins » Fri Jun 02, 2017 3:26 pm

Close MediaMonkey.

Open this file in notepad:
C:\Users\USERNAME\AppData\Roaming\MediaMonkey\Scripts\Auto\GenreFinder.vbs

Find this line:
str = FixGenre(ele.ChildNodes.Item(0).Text)

Change it to this:
str = FixGenre(ele.ChildNodes.Item(1).Text)

(The 0 changes to a 1).

Restart MediaMonkey.

Re: Genre Finder 5.0 - Updated 05/08/2012

by DarrylGittins » Fri Jun 02, 2017 3:18 pm

It's not working for me either. It doesn't seem to do anything at all other than claim that all tracks have been processed.

Top