Discogs Agent

Hi all,



I’m new to Plex and, like a lot of other users on this board, I found that music scanners/agent were not very efficient.



After playing a while, I managed to get Plex read my ID3 tags correctly so all albums and tracks are correctly imported in the library, even with covers.

But artists summary and artwork are not included in tags. Tried with LastFM but… you know what happened.



So I started to write an Artist Agent for Discogs. I’m also new to Python but looking at other agents, it tooks only a few hours.



Now, most of my artists have a nice artwork and a summary, only a few of them have a wrong match.

I would like to match them manually but when I do, I get only one choice in the list.

I don’t understand how to get the list filled with the result of my agent search() method…



Attached is the agent.

Once installed, it appears in Agents/Personal Media Artists and I put it on top.



Any help is welcome.



Thanks,

Pierre




You can have a look at my Musicbrainz agent package that I released yesterday. It uses musicbrainz for matching and among other services, discogs for metadata (provided there's a link from musicbrainz to the discogs resource).

If you dont like the agents themself, they're kindof well commented and structured so should be easy to read and make out exactly what parts it is you need.

EDIT: Oh and having a quick read of your source, shows that your agent isnt a primary agent, so will not use its search function to provide any search hits. Your agent is contributing to the com.plexapp.agents.none agent, which is the local data agent, which means, it wont be searching any information at all... It'll just provide extra metadata from discogs to that agent... Which is kindof a bad idea since a local primary shouldnt be fetching remote data. To provide search hits, you need to make it into a primary agent instead... Also, I highly suggest you look into PEP8 if you're planning on doing some python programming. I know that basicly no other agents follow the PEP8 style guidelines, but that they're poorly made, doesnt mean you have to follow in their footsteps :)

Allright, I missed that part. Anyway, I can see in the log that my search method is call. Pretty confusing...


I think I tried that, but the agent didn't show in the list. Probably I had a problem somewhere else.


I will !

Thanks, I will look at your package and see if it fit my need or if I can improve my agent.

Pierre


Indeed it is... It's always executed... It's just not used to provide search hits... I have no idea why the function is called AT ALL but for some reason, it is both required to be there, it's required to provide atleast one hit, even though that information, is not used at all later. But well... That's actually one of the minor limitations of the plex agent APIs which are kindof iffy IMO :)

Is this Agent still working and supported?

I recently installed this Agent and had it working on my extremely large music folder. Did this last night... today I can't access the Discogs.com anymore. If I plug in my modem directly into the computer I can but not through my router. All of a sudden I can no longer access Discogs.com. Is it possible that the Discogs Agent made too many requests from Discogs.com and now my computer/router is blocked from Discogs?

Edit: I did get IP banned for using this plugin.. too many requests. I had to submit a support request to have the ban lifted. 

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.