After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700276 - lastfm: update to new API 2.0
lastfm: update to new API 2.0
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: plugins
git master
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on: 728621
Blocks:
 
 
Reported: 2013-05-14 09:22 UTC by Juan A. Suarez Romero
Modified: 2015-09-14 16:20 UTC
See Also:
GNOME target: 3.18
GNOME version: ---


Attachments
lastfm-albumart: update to lastfm api 2.0 (3.38 KB, patch)
2015-09-03 14:15 UTC, Georges Basile Stavracas Neto
committed Details | Review
lastfm-albumart: update to lastfm api 2.0 (9.56 KB, patch)
2015-09-10 13:17 UTC, Georges Basile Stavracas Neto
rejected Details | Review
lua-factory: Add Last.fm plugin (3.60 KB, patch)
2015-09-10 15:01 UTC, Bastien Nocera
committed Details | Review
lastfm-albumart: Remove C version of the Last.fm plugin (23.35 KB, patch)
2015-09-10 15:51 UTC, Bastien Nocera
committed Details | Review
tests: Port lastfm-albumart test to test spotify-cover (19.29 KB, patch)
2015-09-10 15:51 UTC, Bastien Nocera
committed Details | Review

Description Juan A. Suarez Romero 2013-05-14 09:22:05 UTC
Lastfm API has moved to a new version.

We should update lastfm-albumart plugin to use the new version.
Comment 1 Vadim Rutkovsky 2015-09-02 14:30:08 UTC
Old API has been deprecated, 'get_thumbnail' returns None now
Comment 2 Georges Basile Stavracas Neto 2015-09-03 14:15:22 UTC
Created attachment 310595 [details] [review]
lastfm-albumart: update to lastfm api 2.0

Last.FM API 1.0 stopped working, forcing us
to use the new Scrobbling API.

This patch updates the lastfm-albumart plugin
to use the new Scrobbling API.
Comment 3 Bastien Nocera 2015-09-03 14:22:51 UTC
Review of attachment 310595 [details] [review]:

The tests in tests/lastfm-albumart also need updating. Run "make check" in that directory to double-check your changes.
Comment 4 Georges Basile Stavracas Neto 2015-09-10 13:17:21 UTC
Created attachment 311070 [details] [review]
lastfm-albumart: update to lastfm api 2.0

Last.FM API 1.0 stopped working, forcing us
to use the new Scrobbling API.

This patch fixes it by introducing the new Last.FM
Scrobbling API. Consequently, it now requires an API
key to be given. It is up to the consumer application
to pass it through GrlConfig.
Comment 5 Bastien Nocera 2015-09-10 15:01:03 UTC
Created attachment 311085 [details] [review]
lua-factory: Add Last.fm plugin
Comment 6 Bastien Nocera 2015-09-10 15:51:28 UTC
Created attachment 311092 [details] [review]
lastfm-albumart: Remove C version of the Last.fm plugin

It was using an outdated API, and has now been fixed and ported to Lua,
using gnome-online-accounts support.

This leaves the tests alone, as they will be repurposed.
Comment 7 Bastien Nocera 2015-09-10 15:51:38 UTC
Created attachment 311093 [details] [review]
tests: Port lastfm-albumart test to test spotify-cover

Repurpose the tests to cover the Spotify cover plugin instead of the
last.fm one, as the last.fm plugin now requires GOA to be instantiated.
Comment 8 Bastien Nocera 2015-09-14 13:29:52 UTC
Comment on attachment 311070 [details] [review]
lastfm-albumart: update to lastfm api 2.0

We won't be using this plugin in the future, as we prefer to require gnome-online-accounts rather than applications providing the API key.

So reject this patch which requires applications to be updated, and use the older patch instead.
Comment 9 Bastien Nocera 2015-09-14 13:31:10 UTC
Comment on attachment 310595 [details] [review]
lastfm-albumart: update to lastfm api 2.0

Will commit this after a few fixes.
Comment 10 Bastien Nocera 2015-09-14 13:32:47 UTC
Comment on attachment 310595 [details] [review]
lastfm-albumart: update to lastfm api 2.0

Fixed in 0.2.x for GNOME 3.16/3.18.
Comment 11 Bastien Nocera 2015-09-14 16:20:22 UTC
Attachment 311085 [details] pushed as 688024e - lua-factory: Add Last.fm plugin
Attachment 311092 [details] pushed as 37bacc5 - lastfm-albumart: Remove C version of the Last.fm plugin
Attachment 311093 [details] pushed as 6dc67fa - tests: Port lastfm-albumart test to test spotify-cover