From fe813cde98c0c550137b47dd7a75ec2d4d9e6f34 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 16 Aug 2005 01:02:55 +0000 Subject: - add getLength() call to iStaticServiceInformation - implementation for dvb pvr streams using tstools - start of implementing status information for PVR --- lib/python/Components/MovieList.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 4144353e..003302b3 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -34,10 +34,16 @@ def MovieListEntry(serviceref, serviceHandler): del 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))) res.append((0, 30, 200, 20, 1, RT_HALIGN_LEFT, "Toller Film")) res.append((0, 50, 200, 20, 1, RT_HALIGN_LEFT, "Aufgenommen: irgendwann")) - res.append((200, 50, 200, 20, 1, RT_HALIGN_RIGHT, "1232MB")) + res.append((200, 50, 200, 20, 1, RT_HALIGN_RIGHT, len)) return res -- cgit v1.2.3