audacious song change plugin and radio song change
Up to Scripts
Read currently played song.
Use this script with song_change plugin of audacious media player (http://audacious-media-player.org)
Put this script somewhere, for example in /usr/local/bin/
and in audacious, put in song_change preferences: /usr/local/bin/song_change.py "%s"
This script can be used while listening a radio with audacious.
You need to compile audacious-plugins with
"#define DEBUG_METADATA_REPORT 1"
in the file audacious-plugins-1.3.2/src/curl/curl.c
to print the artist-title in the terminal
When the radio play a new song, in the terminal, you will have for example:
New song: 'PENICILLIN - Prision'
You have to launch audacious like this:
audacious |tee /tmp/audacious-radio
and you have to launch the script in an other terminal: song_change.py
This script have been tested with shinsen-radio (http://www.shinsen-radio.org)
Download the filetail module at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/436477
Put it near song_change.py or in Python path.
CHANGES
=======
2007/04/21 - version 1.0:
- initial version