view vixm/song.py @ 21:dfcf1a46fc56 v0.20

Added GPLv2 file & copyright headers
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Sun, 20 Aug 2006 12:30:19 -0400
parents ae3451bedeb6
children 860c891de6bb
line wrap: on
line source

# song.py - song class
#
# Copyright (C) 2006  Josef "Jeff" Sipek <jeffpc@josefsipek.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.

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)

	def __str__(self):
		return self["title"]