From 80059ab78691323ff8bb30ba4db8577a5185fc6d Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 27 Jan 2009 21:01:47 +0100 Subject: differenciate between normal and simulate recordings simulate recordings now no more returned in normal nav.getRecordings() call.. to get a list of running simulate recordings you can use nav.getRecordings(True) --- Navigation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Navigation.py') diff --git a/Navigation.py b/Navigation.py index 715e886b..2ca87f6f 100644 --- a/Navigation.py +++ b/Navigation.py @@ -87,7 +87,7 @@ class Navigation: if ref: if ref.flags & eServiceReference.isGroup: ref = getBestPlayableServiceReference(ref, eServiceReference(), simulate) - service = ref and self.pnav and self.pnav.recordService(ref) + service = ref and self.pnav and self.pnav.recordService(ref, simulate) if service is None: print "record returned non-zero" return service @@ -96,8 +96,8 @@ class Navigation: ret = self.pnav and self.pnav.stopRecordService(service) return ret - def getRecordings(self): - return self.pnav and self.pnav.getRecordings() + def getRecordings(self, simulate=False): + return self.pnav and self.pnav.getRecordings(simulate) def getCurrentService(self): if not self.currentlyPlayingService: -- cgit v1.2.3