Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lastimport: Unable to read page #1574

Closed
rjgould opened this issue Aug 23, 2015 · 6 comments
Closed

lastimport: Unable to read page #1574

rjgould opened this issue Aug 23, 2015 · 6 comments
Labels
bug bugs that are confirmed and actionable

Comments

@rjgould
Copy link

rjgould commented Aug 23, 2015

Hi everyone,

Is anyone else having issues with lastimport at all?

lastimport: Fetching last.fm library for @mysticg
lastimport: Querying page #1...
lastimport: ERROR: unable to read page #1
lastimport: Retrying page #1... (1/3 retry)
lastimport: ERROR: unable to read page #1
lastimport: Retrying page #1... (2/3 retry)
lastimport: ERROR: unable to read page #1
lastimport: Retrying page #1... (3/3 retry)
lastimport: ... done!
lastimport: finished processing 1 song pages
lastimport: 0 unknown play-counts
lastimport: 0 play-counts imported

My config as per the manual is just

lastfm:
    user: mysticg

Any suggestions? I'm wondering if it might be related to the Last.fm site updates?

@sampsyo sampsyo added the bug bugs that are confirmed and actionable label Aug 24, 2015
sampsyo added a commit that referenced this issue Aug 24, 2015
@sampsyo
Copy link
Member

sampsyo commented Aug 24, 2015

Thanks for reporting. It does look like something is broken in the Last.fm API. It's reporting an "Invalid Method" error for any call to library.getTracks. There's no indication in the API documentation that the method has gone away: http://www.last.fm/api/show/library.getTracks

Google hasn't turned anything up. Maybe this is a bug that they'll eventually fix? Or maybe their API is just being neglected, which would be bad news? Perhaps we should post on their developer forms to get more information.

@rjgould
Copy link
Author

rjgould commented Aug 24, 2015

I've posted on their getsatisfaction portal. It looks like they may have messed up a whole heap of stuff...

https://getsatisfaction.com/lastfm/topics/api-known-issues?topic-reply-list%5Bsettings%5D%5Bfilter_by%5D=all&topic-reply-list%5Bsettings%5D%5Breply_id%5D=16048253#reply_16048253

@sampsyo
Copy link
Member

sampsyo commented Aug 25, 2015

Tragic. We really need a legitimate alternative to Last.fm.

@petwri
Copy link

petwri commented Aug 26, 2015

Seems like they messed up their whole api with the page relaunch. But they keep telling that all features will be back once all the migration is done.

@charlesmauch
Copy link

I tried to get the lastimport plugin working for the past few days with the same issue mentioned above. It seems a bit hit and miss with other applications that use the api. For example, I was able to use lastexport.py (from the libre.fm conversion tools) to pull in my history in a large exported_tracks.txt text file. Nothing else seemed to work. At least I have a backup of my play history now if nothing else. I'll wait, but if I get really bored I may just decide to write a small perl or python script to convert that exported_tracks data into the beets database. sqllite isn't hard to fool with if it comes down to it.

@petwri
Copy link

petwri commented Oct 16, 2015

So, I had a closer look into this whole thing, and the problem is that last.fm has for some reason removed the api-method that is used in this plugin, which is http://www.last.fm/api/show/library.getTracks. When calling it, an error "Invalid Method - No method with that name in this package" is thrown back. library.getartists, which is also in the last.fm API documentation, works fine. So bottom line, last.fm's API is currently just a mess, and nobody really knows when or if they think to ever make it work again. I haven't found a different method that could replace library.getTracks, because the API documentation is not really up to date, to say the least. IMHO, everybody needs an alternative to last.fm

sampsyo added a commit that referenced this issue Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs that are confirmed and actionable
Projects
None yet
Development

No branches or pull requests

4 participants