没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > spotify-notify |
|
spotify-notify
|
| 1 | 0 | 0 |
| 贡献者 | 讨论 | 代码提交 |
Spotify-notifySpotify-notify is a notifier for currently playing song in Spotify on a linux system, using the notify-osd notifier (found in e.g. Ubuntu). It is intended for use on Ubuntu systems - dependencies are notify-osd, python-xlib, pynotify and pylast (included in release, http://code.google.com/p/pylast/).
The script uses last.fm in order to fetch album cover and data.
Getting startedAs for now, the script is run seperately from Spotify. Plans are to make the script launch Spotify and automatically stop running when you close Spotify.
These instructions apply to Ubuntu only (but may work on other Debian-based distros)
To get it running, you first need to download the files. You'll find them in the "Downloads" section above. Unzip them to your home folder.
Next, make sure you have the right dependencies. Open up a terminal (ALT + F2, then write "xterm") and write:
sudo apt-get install python-xlib python-notify
Navigate to the folder where you unpacked the zip-file. Then run the script by typing
python spotify-notify.py
FAQQ: Why is the result not from same album that I listen to in Spotify?
A: Due to Spotify not revealing any info to third party applications, all info that is available is the artist name and song title. This is sent as-is to last.fm, which return most relevant result. In many cases, tracks from live CDs will return their studio counterparts etc.
Q: Do I need Ubuntu to use this script? Will others distros work?
A: This one I don't really know, the script sends notification requests using the pynotify library. Most likely it will work on all distros using solutions compatible with notification-daemon. Please contact me with all your success stories! :)
Spotify-notify is in no way affiliated with Spotify. Spotify is the registered trade mark of the Spotify Group.
标签:
