This program barely fit in my attention span
General
Toys
Other
Blog Archives
Super Links
Copyleft

Unless otherwise stated, all original content on this site is licensed under your choice of the GNU FDL or the Creative Commons ShareAlike License.

GNU FDL Creative Commons License

Validate

Hopefully, this website is valid. You can check the XHTML, the CSS, and the RSS.

Valid XHTML 1.0 Strict Valid CSS Valid RSS

Stats

XMMS Song History

Song history is an XMMS plugin I wrote. Its function is very simple. It just keeps track of all the songs you listen to. Clocking in at about 150 lines of code, it is probably most useful as a "hello world" plugin for others to look at.

If you install it, you can enable it by looking for it in the "General Plugins" tab of the XMMS preferences window and then selecting it and checking the "Enable plugin" box. When it is enabled, every time you listen to a song, it will append a line to the file "~/.xmms/song-history" that contains the time the song was started, the time it ended, and the name of the file. The times are given as unix style timestamps and the song-history file ends up looking like this.

1115264780 1115264932 /home/ben/mp3/the_donnas/turn_21/03-40_boys_in_40_nights.mp3
1115264932 1115265115 /home/ben/mp3/the_donnas/turn_21/04-play_my_game.mp3
1115265115 1115265138 /home/ben/mp3/the_donnas/turn_21/05-midnite_snack.mp3
1115265138 1115265144 /home/ben/mp3/the_killers/hot_fuss/01-jenny_was_a_friend_of_mine.mp3
1115265144 1115265171 /home/ben/mp3/the_killers/hot_fuss/04-somebody_told_me.mp3

See? Nice and easy to parse.