view vixm/song.py @ 28:bc689f2fd114 default

ignore .swp
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Fri, 03 Nov 2006 23:02:31 -0500
parents dfcf1a46fc56
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"]