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 754811 - spotify: implement Spotify plugin
spotify: implement Spotify plugin
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: plugins
unspecified
Other All
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2015-09-10 03:12 UTC by Georges Basile Stavracas Neto
Modified: 2017-12-26 22:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
spotify: implement Spotify plugin (20.55 KB, patch)
2015-09-10 03:12 UTC, Georges Basile Stavracas Neto
rejected Details | Review
lua-factory: Add Spotify cover source (3.75 KB, patch)
2015-09-10 09:58 UTC, Bastien Nocera
none Details | Review
lua-factory: Add Spotify cover source (3.69 KB, patch)
2015-09-10 15:50 UTC, Bastien Nocera
committed Details | Review

Description Georges Basile Stavracas Neto 2015-09-10 03:12:10 UTC
This is an initial implementation of the Spotify plugin,
which just retrieves audio coverart with the Spotify
public API.

A more sophisticated and featureful version will come
after this is settled and GNOME 3.18 is released.
Comment 1 Georges Basile Stavracas Neto 2015-09-10 03:12:15 UTC
Created attachment 311032 [details] [review]
spotify: implement Spotify plugin
Comment 2 Bastien Nocera 2015-09-10 09:43:31 UTC
You'll have to give me an example query, because I can't get it to find any covers.
Comment 3 Bastien Nocera 2015-09-10 09:58:01 UTC
Created attachment 311048 [details] [review]
lua-factory: Add Spotify cover source
Comment 4 Bastien Nocera 2015-09-10 09:59:33 UTC
You'll need to make changes to tests/lastfm-albumart to test through the spotify plugin rather than the (now broken) last.fm plugin.
Comment 5 Bastien Nocera 2015-09-10 09:59:59 UTC
Comment on attachment 311032 [details] [review]
spotify: implement Spotify plugin

Not adding a big C plugin for that.
Comment 6 Georges Basile Stavracas Neto 2015-09-10 12:47:02 UTC
(In reply to Bastien Nocera from comment #5)
> Comment on attachment 311032 [details] [review] [review]
> spotify: implement Spotify plugin
> 
> Not adding a big C plugin for that.

Should I stop working on that entirely?
Comment 7 Bastien Nocera 2015-09-10 12:51:51 UTC
(In reply to Georges Basile Stavracas Neto from comment #6)
> (In reply to Bastien Nocera from comment #5)
> > Comment on attachment 311032 [details] [review] [review] [review]
> > spotify: implement Spotify plugin
> > 
> > Not adding a big C plugin for that.
> 
> Should I stop working on that entirely?

There's a lua plugin now. You'll need to write the tests for that plugin (the local-metadata plugin is an example of using lua sources in tests, and lastfm-albumart an example of cover lookups).

Given the clarity and the lack of boilerplate in the lua code, I really prefer that to the amount of C code and build infrastructure.

Here's a start of a patch for the lastfm-albumart tests to use the new spotify cover plugin:
http://paste.fedoraproject.org/265618/18894551
Comment 8 Bastien Nocera 2015-09-10 15:50:51 UTC
Created attachment 311091 [details] [review]
lua-factory: Add Spotify cover source
Comment 9 Bastien Nocera 2015-09-14 16:19:52 UTC
Attachment 311091 [details] pushed as 03ee614 - lua-factory: Add Spotify cover source
Comment 10 Alberto Fanjul 2017-12-26 17:51:09 UTC
Spotify needs authorization now. Any way to provide header Auth token? I check and with a correct token it works
Comment 11 André Klapper 2017-12-26 20:05:40 UTC
@Alberto: Please create new tasks for new requests / problems.
This task has been closed for two years. Thanks.
Comment 12 Alberto Fanjul 2017-12-26 22:56:22 UTC
Sure, sorry for that