aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-15 21:18:04 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-15 21:18:04 +0000
commit96573a19a9b13989785905817e7072ac6e25f795 (patch)
tree78d70f19e07e32a6c9467f6ccd89fa5cfb7c50a1 /lib/python
parent771c2ef46032790eca3d3f2c480c8ab1c18c6247 (diff)
downloadenigma2-96573a19a9b13989785905817e7072ac6e25f795.tar.gz
enigma2-96573a19a9b13989785905817e7072ac6e25f795.zip
allow record when "/hdd/movies" exists only
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index c75b1511..1ef39982 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -20,6 +20,7 @@ from Screens.Standby import Standby
from enigma import *
import time
+import os
# hack alert!
from Menu import MainMenu, mdom
@@ -372,6 +373,12 @@ class InfoBarInstantRecord:
self.startInstantRecording()
def instantRecord(self):
+ try:
+ stat = os.stat("/hdd/movies")
+ except:
+ self.session.open(MessageBox, "No HDD found!")
+ return
+
if self.recording != None:
self.session.openWithCallback(self.recordQuestionCallback, MessageBox, "Do you want to stop the current\n(instant) recording?")
else: