def __init__(self): # XXX: laymansterms - VideoItem should really have a few mandatory # parameters. title, filename, maybe more. Playable.__init__(self) self.config = Configuration() self._title = "" self.filename = "" self.art_hash = ""
def __init__(self, filename, title, number, artist, album, year, length, lyrics, create_album_callback): Playable.__init__(self) # Check that these fields are integers for field in [number, year, length]: if type(field) != int: raise TrackTypeError("%s is not an integer" % field) self.filename = filename self.title = title self.number = number self.artist = artist self._album = album self.year = year # Length of the track in seconds (example 240) self.length = length self._lyrics = lyrics self.create_album_callback = create_album_callback
def __init__(self, number, title, length): Playable.__init__(self) self.title = title self.uri = "cdda://" + str(number) self.length = length