From 96573a19a9b13989785905817e7072ac6e25f795 Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Tue, 15 Nov 2005 21:18:04 +0000 Subject: [PATCH 1/1] allow record when "/hdd/movies" exists only --- lib/python/Screens/InfoBarGenerics.py | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- 2.30.2