From: Ronny Strutz Date: Tue, 15 Nov 2005 21:18:04 +0000 (+0000) Subject: allow record when "/hdd/movies" exists only X-Git-Tag: 2.6.0~5172 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/96573a19a9b13989785905817e7072ac6e25f795 allow record when "/hdd/movies" exists only --- 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: