view vixm/song.py @ 1:6c5b9827b117

Trivial definition of a song class
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Sat, 12 Aug 2006 20:16:44 -0400
parents
children ae3451bedeb6
line wrap: on
line source

import xmms

class song(dict):
	def __init__(self, pos):
		self["file"]	= xmms.control.get_playlist_file(pos)
		self["time"]	= xmms.control.get_playlist_time(pos)
		self["pos"]	= pos
		self["title"]	= xmms.control.get_playlist_title(pos)