aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/InfoBarGenerics.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-07-28 12:49:04 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-07-28 12:49:04 +0000
commit55ee6d8a6a357c5e7926978d07494c452d5ea7ee (patch)
tree8ea3bae1f34510b9b8f1d4f6f85947e96ca9ce32 /lib/python/Screens/InfoBarGenerics.py
parentf0a0f6b79c99fb346c32e435a543c1649a197f54 (diff)
downloadenigma2-55ee6d8a6a357c5e7926978d07494c452d5ea7ee.tar.gz
enigma2-55ee6d8a6a357c5e7926978d07494c452d5ea7ee.zip
make resume optional
Diffstat (limited to 'lib/python/Screens/InfoBarGenerics.py')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 42a7eb82..754b673a 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -1445,6 +1445,8 @@ class InfoBarCueSheetSupport:
CUT_TYPE_MARK = 2
CUT_TYPE_LAST = 3
+ ENABLE_RESUME_SUPPORT = False
+
def __init__(self):
self["CueSheetActions"] = HelpableActionMap(self, "InfobarCueSheetActions",
{
@@ -1454,6 +1456,7 @@ class InfoBarCueSheetSupport:
}, prio=1)
self.cut_list = [ ]
+ self.is_closing = False
self.__event_tracker = ServiceEventTracker(screen=self, eventmap=
{
iPlayableService.evStart: self.__serviceStarted,
@@ -1465,16 +1468,17 @@ class InfoBarCueSheetSupport:
print "new service started! trying to download cuts!"
self.downloadCuesheet()
- last = None
-
- for (pts, what) in self.cut_list:
- if what == self.CUT_TYPE_LAST:
- last = pts
+ if self.ENABLE_RESUME_SUPPORT:
+ last = None
- if last is not None:
- self.resume_point = last
- Notifications.AddNotificationWithCallback(self.playLastCB, MessageBox, _("Do you want to resume this playback?"), timeout=10)
-
+ for (pts, what) in self.cut_list:
+ if what == self.CUT_TYPE_LAST:
+ last = pts
+
+ if last is not None:
+ self.resume_point = last
+ Notifications.AddNotificationWithCallback(self.playLastCB, MessageBox, _("Do you want to resume this playback?"), timeout=10)
+
def playLastCB(self, answer):
if answer == True:
seekable = self.__getSeekable()