[Release] Musicbrainz Agent

scanner-agent-dev

#5

[quote name='vignot' timestamp='1356041273' post='327877']


About the last point, yes, you're right... because you make the search MusicBrainz.

When doing a search with Discogs you get that :


wget "http://api.discogs.com/search?t=artist&q=sublime" -Osublime



{ "resp":

{ "status": true,

"search":

{ "searchresults":

{ "numResults": "1960", "start": "1", "end": "50",

"results": [

{"thumb": "http://s.discogss.com/images/record150.png",

"title": "Sublime",

"type": "artist",

"uri": "http://www.discogs.com/artist/**Sublime**",

"summary": "Progressive house / trance project."},



{"thumb": "http://s.discogss.com/images/record150.png",

"title": "Sublime",

"type": "artist",

"uri": "http://www.discogs.com/artist/**Sublime+%285%29**",

"summary": ""},



{"thumb": "http://s.discogss.com/images/record150.png",

"title": "Sublime",

"type": "artist",

"uri": "http://www.discogs.com/artist/**Sublime+%283%29**",

"summary": ""},



{"thumb": "http://s.discogss.com/image/A-150-98600-1304762762.jpeg",

"title": "Sublime",

"type": "artist",

"uri": "http://www.discogs.com/artist/**Sublime+%282%29**",

"summary": "An influential California punk/ska rock band, existed between 1988 and 1996. Sublime disbanded after their singer Brad Nowell died of a heroin overdose on May 25, 1996, only two months before their self-titled album, which is often considered a landmark ska album, was released. In 2009, the surviving members Bud Gaugh and Eric Wilson attempted to reform Sublime with Rome Ramirez as their new singer and guitarist, but due to a lawsuit, the band was forced to change their name to Sublime With Rome. "},



{"thumb": "http://s.discogss.com/images/record150.png",

"title": "Sublime",

"type": "artist",

"uri": "http://www.discogs.com/artist/**Sublime+%284%29**",

"summary": ""},

... ]

}}}}



So you can get the artists name "stripped off"... if you match the artist against Discogs directly.

Or you can get it with a second request, which is definitly not the idea of the year.



Pierre

[/quote]






No no... I could make it strip it off for Sublime... Because there isnt a Sublime (2) as an actual name... However just stripping away the (x) from a name would wreak havoc for albums like () (yes there is actually an album named just ()... It's even a quite popular album at that). And it would completely break artists like (sic) and even artists like Greg, (P'tit) and so on... As for your search there... It's irrelevant, but let's assume it isnt for a moment... Have you actually looked at what the name is on the actual pages for each of those hits? Such as http://api.discogs.com/artist/Sublime+%282%29 ? Look at the name field of that artist... Basicly the only way to get the actual artist name from discogs, is during the search... But discogs is a secondary agent for me, not a primary agent. Meaning that if I perform a search for metadata, because multiple artists share name... Then how the HELL am I supposed to match out the name that's relevant? The name Im after could be any of the hits, or none of them...



So, stripping isnt an option since it breaks other artists...

Search isnt an option because it's not a primary agent...

The only remaining option, is for Discogs to not print the numbers as actual parts of artist names.. Until they change that, there's really not much I can do in the agent, unless you can come up with a surefire algorithm for knowing when that parenthesis is being added by discogs or an actual part of the name.


#6

I installed the musicbrainz.bundle folder to my PMS Plug-ins folder and restarted PMS but I don't see the it in my Channel list or as an available agent. What did I miss?



regards,

Eric


#7

[quote name='xinutel' timestamp='1356671939' post='330671']


I installed the musicbrainz.bundle folder to my PMS Plug-ins folder and restarted PMS but I don't see the it in my Channel list or as an available agent. What did I miss?



regards,

Eric

[/quote]




Most likely, you've put it in the wrong plugins folder. And obviously it wouldnt show up in the Channel list (whatever made you think it would show there?) but it should show as an available agent. Have you looked at the logs?


#8

[quote name='xinutel' timestamp='1356671939' post='330671']


I installed the musicbrainz.bundle folder to my PMS Plug-ins folder and restarted PMS but I don't see the it in my Channel list or as an available agent. What did I miss?



regards,

Eric

[/quote]




also make sure that owner:group for files in installed bundle is set to plex:plex or whatever you have plex running under...


#9

hey. almost a great plugin. great to see discogs and last.fm together.

but without Home-Theater-Backdrops or Local Media Assets (for me) it causes a really large "Unknown Artists" folder which wasn't there with last.fm only


#10

[quote name='snikay' timestamp='1360968174' post='355478']


hey. almost a great plugin. great to see discogs and last.fm together.

but without Home-Theater-Backdrops or Local Media Assets (for me) it causes a really large "Unknown Artists" folder which wasn't there with last.fm only

[/quote]




It's on its way. Im reworking the agent into a single agent (XBMC style) because of the mess that is the Plex API. I was orginally planning for a late Jan release of that, but I've gotten really busy at work due to starting our W8/2012 migration earlier than planned and that's right now scheduled to run until middle of march which means I wont have much time to do any coding until then, which means it'll probably be a late march release instead. The combined agent will be Last.FM, Discogs, Musicbrainz, HTBackdrops, Wikipedia and Local. And it will allow to do artist and album matching on any of the services, amd evem do a search diffrently for album and artist if you wish :)


#11

wow, that sounds really cool ! thanks for your work! really appreciate this.

btw. how does your agents work? Does your Plugin take advantage of the original Agents? Or is it a complete rewrite?


#12

[quote name='snikay' timestamp='1361114634' post='356458']


wow, that sounds really cool ! thanks for your work! really appreciate this.

btw. how does your agents work? Does your Plugin take advantage of the original Agents? Or is it a complete rewrite?

[/quote]




All my agents are complete rewrites. IMO the current agents are all a complete mess when it comes to music.


#13

is the next version still planned to be released in march ? 


#14

Just tried out the metadata agent and had a question.  There is a large number of artists that didn't match.  In some cases, that makes sense but in a number of others there is only one exact match when I "fix incorrect match".  Regardless, there are a couple of these cases where the desired choice is not available in the list to choose.  Some examples are Asia, Bush, and dada.  

Also, what is the recommendation for albums with multiple artists?  (e.g. Ben Harper & Charlie Musselwhite)

No knowing out the Plex Scanner works, is it not position to use the embedded MBz ID if found?

Thanks for the great work!

Jeff


#15

Just wanted to let you know I've been following the work of this guy: http://www.onemusicapi.com/  I actually use his music organizer at http://www.blisshq.com 

Either way once I saw that you had versions for musicbrainz and discogs, I figured this might actually benefit you.

Just sharing nothing else. 


#16

Hey EtherMan, are u still planning an update? :/

halkon, i don't think this is interesting, because it costs 150$ a month O_o


#17

Definitely interested in this. Thanks EtherMan


#18

Well, been a while now and while I still plan on doing this, I've halted development until the API itself is fixed. Havnt had time to check the latest release of server now but the version that was used now for a long time, was broken, for music and since no dev even so much as acknowledged the bug, I decided to halt until I atleast know it WILL be fixed and not become one of those issues that just stays there forever and ever like some other major issues (a/v sync issues, Im looking at you ;)


#19

Well, been a while now and while I still plan on doing this, I've halted development until the API itself is fixed. Havnt had time to check the latest release of server now but the version that was used now for a long time, was broken, for music and since no dev even so much as acknowledged the bug, I decided to halt until I atleast know it WILL be fixed and not become one of those issues that just stays there forever and ever like some other major issues (a/v sync issues, Im looking at you ;)

Are you still in halted development mode or are you working on updating the 3 agents?  I really do hope you continue development on these agents.

I'm not sure if the agents are not showing up on my system because I have them installed into the wrong folder or if they simply just don't work with the current PMS release.  I have them in C:\Users\myusername\AppData\Local\Plex Media Server\Plug-ins which is the same folder where all the other bundles I have installed are at so it should be the correct folder.  When I pull up the Settings>Agents>Artists or Settings>Agents>Albums they are nowhere to be found.  They also do not appear when I select Channels>View All>Directory>More...>All Available Plug-ins.

I have Version 0.9.7.28 of PMS running on Windows 7

Thanks in advance


#20

Ok, I'm just a little braindead at the moment.  The reason they weren't showing up for me is I didn't rename them to end in .bundle after unzipping the 3 folders.  More than likely "xinutel" did exactly the same thing.  I feel so stupid...


#21

WOW!!!!  I am overall very pleased with the results now that I have managed to scan my entire library using the Musicbrainz bundle..

I'm still not sure how to fix a problem where it can't distinguish between two different albums with the same name.  One example would be Cheap Trick's 1977 debut album which keeps getting matched as the 1997 Cheap Trick release which is a completely different album.  How can I unmatch only the tracks from the '77 release to correctly match that release without unmatching the tracks from the '97 release?


#22

I just spent pretty much the entire day trying to get the two Cheap Trick self titled releases to correctly show up in my Plex library only to have the Turbo Scan erase all my changes.  It really takes a lot of work just to remove the items.

1st step:  Physically move the files to another network drive not shared in my Plex Music Section which is called "MusicBrainz" and has the Section ID of 7.

2nd step:  Do a full Turbo Scan to get the files to show up in the trash (2-3 hours)

3rd step: Verify the Cheap Trick entry is the only entry in the entire library actually in the trash (1/2 hour or so)

4th step: Physically move the files back to the drive with the rest of the music files.

5th step: Start a scan of section 7 without refresh using the command line controls via a batch file.  (once again 2 hours before the two folders get added in but not matched)

6th step:  Manually edit and lock all fields on both items to exactly how I want them. (1/2 hour or so)

Now you think you have it actually fixed and the locked fields won't change...think again.....

7th step: Run a Turbo Scan again to get rid of trash icons that erroneously appeared during the last scan...

8th step:  Pull up the Cheap Trick entry to verify the locked fields actually stayed locked..

STEP NINE:  SCREAM, Curse and Yell when you see it has once again dumped all the tracks into one listing and your entire day (actually my Birthday) has been utterly waisted....

What am I doing wrong????   Although the 1997 release is listed in the MusicBrainz database as "Cheap Trick" I have edited my tags to list it as "Cheap Trick '97" with an .nfo file in the folder which the scanners all seem to ignore.  I really want to be able to fix this in my library.  Last.fm won't make a correction.  MusicBrainz won't change the title although I did put in an edit for a disambiguation entry, so I really don't know what to do.


#23

anything new to this agent? 

last time i tried it, i had a few problems...


#24

Is there any chance to add the ability for the agent to append disc numbers to the album title for releases which have a value greater than 1 in the totaldiscs field of the ID3 tags generated by Musicbrainz?  It would also be a bonus if it could append any discsubtitle to the end of the album title.  If files are organized in subfolders by disc number under the album title it matches them all as separate albums with the same title.

Basically generating a string as follows is what I'm after:

%album%$if($gt(%totaldiscs%,1), - Disc %discnumber%$if(%discsubtitle%, - %discsubtitle%,),)

One example would be Tom Petty's [1995] Playback [US] [MCA Records] [MCAD-6-11375].

Rather than getting 6 different albums all called "Playback" I would get the following 6 listings:

Playback - Disc 1 - The Big Jangle

Playback - Disc 2 - Spoiled & Mistreated

Playback - Disc 3 - Good Booty

Playback - Disc 4 - The Other Sides

Playback - Disc 5 - Through the Cracks

Playback - Disc 6 - Nobody's Children

If there is a way to implement this feature I would greatly appreciate the time it would save.

Thanks