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

Fix lastimport #1574 (LastFM API change) #1797

Merged
merged 5 commits into from
Jan 4, 2016
Merged

Conversation

LordSputnik
Copy link
Collaborator

Fixes #1574 by changing the API method from library.getTracks to user.getTopTracks, which returns similar information (mbid, artist, title, playcount).

Also, I've replaced the custom HTTP request (using requests) with the pylast library, which is already a dependency of lastgenre.

@LordSputnik LordSputnik changed the title Lastimport fix 1574 Fix lastimport #1574 (LastFM API change) Jan 4, 2016
@sampsyo
Copy link
Member

sampsyo commented Jan 4, 2016

Truly awesome! Thanks for looking at this---I didn't know there was an alternative API endpoint we could use. 🎉

And thanks for updating the docs too!

It looks like the tests may need to be updated to sync with the new version. And we'll also need a changelog, after which this should be good to merge.

@LordSputnik
Copy link
Collaborator Author

Ah, looks like I have any error in the docs - will get that fixed and changelog done.

@sampsyo
Copy link
Member

sampsyo commented Jan 4, 2016

Perfect; thanks again! ✨

sampsyo added a commit that referenced this pull request Jan 4, 2016
@sampsyo sampsyo merged commit b712c49 into master Jan 4, 2016
@rjgould
Copy link

rjgould commented Jan 5, 2016

Thanks @LordSputnik

@petwri
Copy link

petwri commented Jan 7, 2016

Thank you for fixing this. I am updating beets via pip, when will this fix be available there? It's still not working on the current version I have updated to.

@sampsyo
Copy link
Member

sampsyo commented Jan 7, 2016

As soon as we do a new release. If you need the fix sooner, you can consider running from source (as described in the FAQ).

@sampsyo sampsyo deleted the lastimport-fix-1574 branch January 27, 2016 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants