- info = serviceHandler.info(serviceref)
-
- if info is None:
- # ignore service which refuse to info
- return
-
- len = info.getLength(serviceref)
- if len:
- len = "%d:%02d" % (len / 60, len % 60)
- else:
- len = "?:??"
-
- res.append((0, 0, 400, 30, 0, RT_HALIGN_LEFT, info.getName(serviceref)))
-
- description = info.getInfoString(serviceref, iServiceInformation.sDescription)
- begin = info.getInfo(serviceref, iServiceInformation.sTimeCreate)
-
- begin_string = ""
- if begin > 0:
- t = FuzzyTime(begin)
- begin_string = t[0] + ", " + t[1]
-
- res.append((0, 30, 200, 20, 1, RT_HALIGN_LEFT, description))
- res.append((0, 50, 200, 20, 1, RT_HALIGN_LEFT, begin_string))
- res.append((200, 50, 200, 20, 1, RT_HALIGN_RIGHT, len))
-
- return res