annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
6c5b9827b117 Trivial definition of a song class
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
diff changeset
1 import xmms
6c5b9827b117 Trivial definition of a song class
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
diff changeset
2
6c5b9827b117 Trivial definition of a song class
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
diff changeset
3 class song(dict):
6c5b9827b117 Trivial definition of a song class
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
diff changeset
4 def __init__(self, pos):
6c5b9827b117 Trivial definition of a song class
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
diff changeset
5 self["file"] = xmms.control.get_playlist_file(pos)
6c5b9827b117 Trivial definition of a song class
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
diff changeset
6 self["time"] = xmms.control.get_playlist_time(pos)
6c5b9827b117 Trivial definition of a song class
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
diff changeset
7 self["pos"] = pos
6c5b9827b117 Trivial definition of a song class
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
diff changeset
8 self["title"] = xmms.control.get_playlist_title(pos)
6c5b9827b117 Trivial definition of a song class
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
diff changeset
9