allow record when "/hdd/movies" exists only
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 15 Nov 2005 21:18:04 +0000 (21:18 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 15 Nov 2005 21:18:04 +0000 (21:18 +0000)
lib/python/Screens/InfoBarGenerics.py

index c75b151..1ef3998 100644 (file)
@@ -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: