add color buttons to epgselection
[enigma2.git] / lib / python / Tools / Directories.py
index 9cd29511a9d3fd1046c10ea812620af479a2128c..85da53219063714786e00ae5e94ba8e8b05a26e4 100644 (file)
@@ -42,6 +42,8 @@ def getRecordingFilename(basename):
                path = "/hdd/movies/" + filename
                if i > 0:
                        path += str(i)
-               if os.glob(path + "*").size() == 0:
+               try:
+                       open(path + ".ts")
+                       i += 1
+               except IOError:
                        return path
-               i+=1