use default record path when current doesnt exist
authorghost <andreas.monzner@multimedia-labs.de>
Fri, 6 Feb 2009 23:24:10 +0000 (00:24 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Fri, 6 Feb 2009 23:24:10 +0000 (00:24 +0100)
RecordTimer.py
lib/python/Screens/InfoBarGenerics.py

index 6b306d4..897c281 100644 (file)
@@ -141,7 +141,7 @@ class RecordTimerEntry(timer.TimerEntry, object):
                if self.name:
                        filename += " - " + self.name
 
                if self.name:
                        filename += " - " + self.name
 
-               if self.dirname and not Directories.pathExists(self.dirname):
+               if self.dirname and not Directories.fileExists(self.dirname, 'w'):
                        self.dirnameHadToFallback = True
                        self.Filename = Directories.getRecordingFilename(filename, None)
                else:
                        self.dirnameHadToFallback = True
                        self.Filename = Directories.getRecordingFilename(filename, None)
                else:
index 197594f..7003ed8 100644 (file)
@@ -29,7 +29,7 @@ from Screens.TimeDateInput import TimeDateInput
 from ServiceReference import ServiceReference
 
 from Tools import Notifications
 from ServiceReference import ServiceReference
 
 from Tools import Notifications
-from Tools.Directories import SCOPE_HDD, resolveFilename, pathExists
+from Tools.Directories import SCOPE_HDD, resolveFilename, fileExists
 
 from enigma import eTimer, eServiceCenter, eDVBServicePMTHandler, iServiceInformation, \
        iPlayableService, eServiceReference, eEPGCache
 
 from enigma import eTimer, eServiceCenter, eDVBServicePMTHandler, iServiceInformation, \
        iPlayableService, eServiceReference, eEPGCache
@@ -1548,7 +1548,7 @@ class InfoBarInstantRecord:
 
        def instantRecord(self):
                dir = config.movielist.last_videodir.value
 
        def instantRecord(self):
                dir = config.movielist.last_videodir.value
-               if not pathExists(dir):
+               if not fileExists(dir, 'w'):
                        dir = resolveFilename(SCOPE_HDD)
                try:
                        stat = os_stat(dir)
                        dir = resolveFilename(SCOPE_HDD)
                try:
                        stat = os_stat(dir)