I was having an issue with the Last.FM metadata agent, described here: http://forums.plexapp.com/index.php/topic/46483-lastfm-scanning-combining-albums/
Anyway, I made a change to the agent that is giving me really positive results. I was hoping some other people might like to put it through its paces.
What I've done is change ARTIST_ALBUMS in lastfm.py to
. This seems to do a full last.fm database search. If you read my previous post, you can see why this is more useful than the previous artist.gettopalbums. In short, gettopalbums doesn’t always display all the albums.
So I’d really appreciate it if some people would be willing to test this out. Here’s my updated script: lastfm_beta.zip (4.87 KB) Just copy that into your \Plug-ins\LastFM.bundle\Contents folder and scan your media.
Also, one change I’d like to make, and need some advice on how to do so, is changing what is actually getting searched. Since I’ve just sort of appropriated code previously retrieving artist info, that little snippet only queries with the artist name. I’d like to see if it’s more efficient with the album name, but I don’t really know enough python to make that change.
Great! Let me know how it works. I’m not completely convinced it is working 100% correctly the more I’ve tested it. It looks like what I may have done is merely break the album info download without breaking the artist info download. I haven’t had a chance to setup some more test folders just to test this, so we’ll see.
EDIT: Yep, definitely just broke the album info retrieval only. I just made a new Testing folder. The files inside had all standard metadata EXCEPT for album art and year. With the original Last.fm scanner, it finds the album art and the year (usually), as well as the “Album Review” field. Mine retrieves none of those things…
EDIT #2: Well, I semi-take that back. It keeps getting album arts from somewhere (though they aren’t necessarily the album arts from the standard last.fm agent). I’ve attempted to clear just about every cache I’ve got and it continues to find artwork. Not sure where from… Regardless, it still doesn’t pull year or album description.
I’m seeing the same problem. If I add multiple albums from the same artist, the tracks are all mixed under a single album. Can I just disable the Last.FM plugin since it seems to be the problem?
EDIT: I just removed my entire music library and re-added, and it appears to have been updated correctly. Perhaps this was fixed?
My issue has been resolved for a month or so. I never saw any mentions of updates to the last.fm agent in the change logs, so I’m not exactly sure when it happened, but I’d definitely make sure you have the latest media server.
What happens when you Unmatch those albums that are combined? Are they kept as single entries or separated back out?
Second, I’ve also adjusted my Last.FM agent settings so that Personal Media Info has priority over the Last.FM scanner. This is for the old server, but the wiki will give you an idea of what I mean. I spent a lot of time making sure my tags were clean and what I wanted them to be, so I’ve always felt good about them taking priority over Last.FM. I’m really only pulling from last.fm for random missing album art, artist art, and artist descriptions.
Also, when was the last time you completely rebuilt your music library? I found that the metadata would sometimes get “stuck”, meaning it would just use the metadata that had already been downloaded rather than trying to find new metadata from last.fm. I would usually just delete my music section from out of Plex, delete unused packages out of the server settings (this can take some time depending on how much music you had), and rebuild my library. Someone else may have more input on a better way to do this, but that’s what I found worked.
You can also setup another music section that only includes the albums that are giving you troubles if you just want to test out different metadata settings. Then you don’t have to rescan your entire music library all the time while trying to get something to work.
Right now i am running version 0.9.7.9 of the PMS - which one are you using?
I tried to unmatch the albums but no luck - they are picked up by the scanner as one album again.
In both agent settings i have the “Personal Media Info” set at first priority - I have spent quite some time organising my music with covers etc. and everything is there to be picked up.
The last rebuild was done a few days ago when i tried to switch from the Last.fm agent to Discogs but no change.
I Will play around with the new small Test-Music-Section and see if i can track it down - thanks for the idea!
I just looked at the current version of the Last.FM agent and it looks like it’s using album.getinfo from the Last.FM API. This is a change, since when I had the issue it was using artist.gettopalbums. I don’t know if you read my previous thread, but basically the combining of albums happened for me because the Last.FM queries for artist.gettopalbums might leave out albums that actually did exist. Not sure if something similar is happening with the album.getinfo query, but it honestly should be working correctly as far as Plex is concerned.