5 # Author: Cyril Deguet <asmax@via.ecp.fr>
8 import cfg, string, threading
12 "Contains the media playlist"
15 self.lock = threading.Lock()
17 def readConfig(self, filename):
18 "Read the playlist file"
22 line = string.strip(f.readline())
25 items = string.split(line, '\t')
26 newList[items[0]] = {'file':items[1], 'name':items[2], 'addr':items[3]}
31 def getMedia(self, uri):
32 "Return the description of an item in the playlist"
34 if self.list.has_key(uri):
35 media = self.list[uri]