GSoC Final report: Integrate Spotify into Amarok

Ryan Feng odayfans at gmail.com
Fri Aug 24 08:46:07 UTC 2012


Hi,

Sorry for being so late to give the final report. I've pushed all code
to my cloned repo on git.kde.org last week.
Here's the instructions to compile Spotify collection and the resolver.

1) To compile Amarok with Spotify collection:
$ git clone git at git.kde.org:clones/amarok/zhengliangfeng/amarok-spotify.git
$ cd amarok-spotify && git checkout gsoc-spotify
$ cd ../ && mkdir amarok-spotify-build
$ cd amarok-spotify-build
$ cmake ../amarok-spotify
$ make && make install

2) Compile Spotify resolver:

  2.1) First install libspotify(other tarballs can be downloaded from here[1]):
$ wget https://developer.spotify.com/download/libspotify/libspotify-12.1.51-Linux-x86_64-release.tar.gz
$ tar zxvf libspotify-12.1.51-Linux-x86_64-release.tar.gz
$ cd libspotify-12.1.51-Linux-x86_64-release
$ sudo make install

  2.2) Compile the resolver (or download the binary file from [4]):
$ git clone git at git.kde.org:scratch/zhengliangfeng/spotify-resolver.git
$ mkdir spotify-resolver-build && cd spotify-resolver-build
$ cmake ../spotify-resolver
$ make
$ cp spotify_tomahawkresolver ~/.kde/lib/kde4/libexec/spotify_resolver_x86_64

Then start Amarok, the Spotify collection plugin should be loaded and
show up in collection browser.
Configure the plugin [2][3] . Now you should be able to query via
Spotify collection.

Note:
The plugin will try to download a compiled resolver from [4] and save
it to ~/.kde/lib/kde4/libexec/, if it isn't found in your system.
Let me know if you have any questions.

[1] https://developer.spotify.com/technologies/libspotify/
[2] http://i.imgur.com/nCwrA.png
[3] http://i.imgur.com/cQOEX.png
[4] http://ofan.me/spotify_resolver_x86_64

Cheers,
Ryan


More information about the Amarok-devel mailing list