Hi,
I noticed that my Black Eyed Peas albums have no fan art so I hit the "Correct incorrect match" button and it could not find them, I thought this odd so looked in the last.fm agent log.
2013-05-10 07:00:01,855 (1dfc) : DEBUG (runtime:911) - Response: [200] str, 16 bytes
2013-05-10 07:01:21,105 (b48) : DEBUG (runtime:714) - Handling request GET /:/plugins/com.plexapp.agents.lastfm/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCmVuczQKbGFuZ3M2CkFydGlzdHMxMAptZWRpYV90eXBlYjFzNgptYW51YWxyMQpzNgprd2FyZ3MzCm5zNAp5ZWFyczUKMTU0NzBzMgppZHMxNQpibGFjayBleWVkIHBlYXNzNgphcnRpc3RyMAo_
2013-05-10 07:01:21,105 (b48) : DEBUG (runtime:811) - Found route matching /:/plugins/com.plexapp.agents.lastfm/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCmVuczQKbGFuZ3M2CkFydGlzdHMxMAptZWRpYV90eXBlYjFzNgptYW51YWxyMQpzNgprd2FyZ3MzCm5zNAp5ZWFyczUKMTU0NzBzMgppZHMxNQpibGFjayBleWVkIHBlYXNzNgphcnRpc3RyMAo_
2013-05-10 07:01:21,105 (b48) : INFO (agentkit:914) - Searching for matches for {'artist': 'black eyed peas', 'id': '15470', 'year': None}
2013-05-10 07:01:21,105 (b48) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/15470/tree'
2013-05-10 07:01:21,155 (b48) : INFO (logkit:16) - Artist search: black eyed peas
2013-05-10 07:01:21,155 (b48) : INFO (logkit:16) - Running custom search...
2013-05-10 07:01:21,206 (b48) : DEBUG (networking:167) - Fetching 'http://lastfm-z.plexapp.com/2.0/?method=artist.search&artist=black%20eyed%20peas&page=1&limit=9&format=json&api_key=d5310352469c2631e5976d0f4a599773' from the HTTP cache
2013-05-10 07:01:21,266 (b48) : INFO (logkit:16) - Fetching artist's albums and applying album bonus.
2013-05-10 07:01:21,315 (b48) : DEBUG (networking:167) - Fetching 'http://lastfm-z.plexapp.com/2.0/?method=artist.gettopalbums&artist=black%20eyed%20peas&page=1&limit=50&format=json&api_key=d5310352469c2631e5976d0f4a599773' from the HTTP cache
2013-05-10 07:01:21,605 (b48) : INFO (logkit:16) - Applying album bonus of: 12
2013-05-10 07:01:21,605 (b48) : INFO (logkit:16) - Artist result: Black Eyed Peas dist: 0 album bonus: 12 score: 102
2013-05-10 07:01:21,605 (b48) : INFO (logkit:16) - Fetching artist's albums and applying album bonus.
2013-05-10 07:01:21,655 (b48) : DEBUG (networking:167) - Fetching 'http://lastfm-z.plexapp.com/2.0/?method=artist.gettopalbums&artist=the%20black%20eyed%20peas&page=1&limit=50&format=json&api_key=d5310352469c2631e5976d0f4a599773' from the HTTP cache
2013-05-10 07:01:21,716 (b48) : INFO (logkit:16) - Error retrieving artist album search results.
2013-05-10 07:01:21,716 (b48) : CRITICAL (core:561) - Exception in the search function of agent named 'Last.fm', called with keyword arguments {'artist': 'black eyed peas', 'id': '15470', 'year': None} (most recent call last):
File "C:\Users\Juke\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 921, in _search
agent.search(results, media, lang, manual)
File "C:\Users\Juke\AppData\Local\Plex Media Server\Plug-ins\LastFM.bundle\Contents\Code\__init__.py", line 88, in search
self.score_artists(artists, media, lang, artist_results)
File "C:\Users\Juke\AppData\Local\Plex Media Server\Plug-ins\LastFM.bundle\Contents\Code\__init__.py", line 124, in score_artists
bonus = self.get_album_bonus(media, artist_id=id)
File "C:\Users\Juke\AppData\Local\Plex Media Server\Plug-ins\LastFM.bundle\Contents\Code\__init__.py", line 144, in get_album_bonus
albums = GetAlbumsByArtist(artist_id, albums=[], limit=ARTIST_ALBUMS_LIMIT)
File "C:\Users\Juke\AppData\Local\Plex Media Server\Plug-ins\LastFM.bundle\Contents\Code\__init__.py", line 486, in GetAlbumsByArtist
if (total > page * pg_size and not limit) or (page * pg_size < limit):
UnboundLocalError: local variable 'total' referenced before assignment
2013-05-10 07:01:21,716 (b48) : DEBUG (runtime:911) - Response: [200] str, 16 bytes
Any ideas?
Thanks
Simon.