Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 60 lines (36 sloc) 3.283 kB
abc4472 @rsms readme
authored
1 # Buzzing on Spotify
2
3 Keeps a Spotify playlist up to date with the most recently Buzzed Spotify tracks (i.e. track links posted on Google Buzz by anyone in the world).
4
5 *This is a hack by Erik Hartwig and Rasmus Andersson during the Google Spotify Hackathon July 12, 2010.*
6
7 There is a live demo running and the resulting playlist can be found and subscribed to here: ["Buzzing" http://open.spotify.com/user/rasmus/playlist/2PAIqo345bENl0XSnZU8hC](http://open.spotify.com/user/rasmus/playlist/2PAIqo345bENl0XSnZU8hC)
8
9 ## Building and running
10
11 > **Be adviced:** this is a *hack*, not a polished product. It might not work at all. This has been tested and is running on Debian Linux.
12
ba11454 @rsms typo
authored
13 You will need the following stuff:
abc4472 @rsms readme
authored
14
15 - An API key (and secret) for the Google Buzz API. This will get you started: [http://code.google.com/apis/buzz/](http://code.google.com/apis/buzz/)
16
17 - A Spotify premium account and an application key for libspotify. You can create an application key by signing in here: [https://developer.spotify.com/en/libspotify/application-key/](https://developer.spotify.com/en/libspotify/application-key/)
18
19 Now, it's time to setup and start the machine.
20
21 1. Download the libspotify application key as "c-code" and replace the contents of `spotify-updater/appkey.c` with the "c-code".
22
23 2. Run `make` in the `spotify-updater` directory.
24
25 3. Open `run.sh` in your favourite text editor and update the `BUZZ_*` and `SPOTIFY_*` variables with the Buzz API key and secret, and Spotify username.
26
27 4. Open `spotify-updater/password` in your text editor and replace the contents with your Spotify password (for the `SPOTIFY_USER`). Save the file and `chmod 0400 spotify-updater/password` so no one can read it but you.
28
29 5. Run `./run.sh`
30
31 If everything works (yeah, right...) you should see new tracks popping up in the playlist (when observed in a Spotify client). Status and error messages will be printed to the terminal.
32
aa0ccda @rsms minor updates
authored
33 *Tip:* If you want to keep the playlist up to date by having the script running "autonomously", you can use the `run-loop.sh` wrapper and `nohup` like this:
34
35 nohup ./run-loop.sh &
36
37 And you can now log out from the terminal and the program will continue to run.
38
abc4472 @rsms readme
authored
39 ## MIT license
40
41 Copyright (c) 2010 Erik Hartwig & Rasmus Andersson
42
43 Permission is hereby granted, free of charge, to any person obtaining a copy
44 of this software and associated documentation files (the "Software"), to deal
45 in the Software without restriction, including without limitation the rights
46 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
47 copies of the Software, and to permit persons to whom the Software is
48 furnished to do so, subject to the following conditions:
49
50 The above copyright notice and this permission notice shall be included in
51 all copies or substantial portions of the Software.
52
53 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
54 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
55 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
56 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
57 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
58 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
59 THE SOFTWARE.
Something went wrong with that request. Please try again.