aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-07-12 11:03:52 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-07-12 11:03:52 +0000
commit9e0783f71e37ee01c3e4861392234221cec323ce (patch)
tree7fcb1b2567f37d8dd7e2eb04d41f0868125a54e2 /lib/python
parent633c730e5feed206333c5174d53c6384c08047b2 (diff)
downloadenigma2-9e0783f71e37ee01c3e4861392234221cec323ce.tar.gz
enigma2-9e0783f71e37ee01c3e4861392234221cec323ce.zip
fix non working timeshift stop when press the TV Button
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBar.py2
-rw-r--r--lib/python/Screens/InfoBarGenerics.py14
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index 5d6e32a5..9d3e327c 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -45,7 +45,7 @@ class InfoBar(InfoBarShowHide,
"showMovies": (self.showMovies, _("Play recorded movies...")),
"showRadio": (self.showRadio, _("Show the radio player...")),
"showTv": (self.showTv, _("Show the tv player...")),
- })
+ }, prio=2)
for x in HelpableScreen, \
InfoBarShowHide, \
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 99819fae..7f9cafee 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -903,9 +903,9 @@ class InfoBarTimeshift:
print "enable timeshift"
ts = self.getTimeshift()
if ts is None:
- self.session.open(MessageBox, _("Timeshift not possible!"), MessageBox.TYPE_ERROR)
- print "no ts interface"
- return
+# self.session.open(MessageBox, _("Timeshift not possible!"), MessageBox.TYPE_ERROR)
+# print "no ts interface"
+ return 0;
if self.timeshift_enabled:
print "hu, timeshift already enabled?"
@@ -913,7 +913,7 @@ class InfoBarTimeshift:
if not ts.startTimeshift():
import time
self.timeshift_enabled = 1
-
+
# we remove the "relative time" for now.
#self.pvrStateDialog["timeshift"].setRelative(time.time())
@@ -928,11 +928,11 @@ class InfoBarTimeshift:
def stopTimeshift(self):
if not self.timeshift_enabled:
- return
+ return 0
print "disable timeshift"
ts = self.getTimeshift()
if ts is None:
- return
+ return 0
self.session.openWithCallback(self.stopTimeshiftConfirmed, MessageBox, _("Stop Timeshift?"), MessageBox.TYPE_YESNO)
def stopTimeshiftConfirmed(self, confirmed):
@@ -1187,7 +1187,7 @@ class InfoBarInstantRecord:
except:
self.session.open(MessageBox, _("No HDD found or HDD not initialized!"), MessageBox.TYPE_ERROR)
return
-
+
if self.isInstantRecordRunning():
self.session.openWithCallback(self.recordQuestionCallback, ChoiceBox, title=_("A recording is currently running.\nWhat do you want to do?"), list=[(_("stop recording"), "stop"), (_("change recording (duration)"), "changeduration"), (_("add recording (indefinitely)"), "indefinitely"), (_("add recording (stop after current event)"), "event"), (_("add recording (enter recording duration)"), "manualduration"), (_("do nothing"), "no")])
else: