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 c75b1511e945a824f38179a8843abd16e2c08401..1ef399829a06caab7ed483a229643521c7558318 100644 (file)
@@ -20,6 +20,7 @@ from Screens.Standby import Standby
 from enigma import *
 
 import time
 from enigma import *
 
 import time
+import os
 
 # hack alert!
 from Menu import MainMenu, mdom
 
 # hack alert!
 from Menu import MainMenu, mdom
@@ -372,6 +373,12 @@ class InfoBarInstantRecord:
                        self.startInstantRecording()
 
        def instantRecord(self):
                        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:
                if self.recording != None:
                        self.session.openWithCallback(self.recordQuestionCallback, MessageBox, "Do you want to stop the current\n(instant) recording?")
                else: