fix automatic scan
[enigma2.git] / lib / python / Tools / Directories.py
index 982db6f..85da532 100644 (file)
@@ -42,7 +42,8 @@ def getRecordingFilename(basename):
                path = "/hdd/movies/" + filename
                if i > 0:
                        path += str(i)
-#              if os.glob(path + "*").size() == 0:
-#                      return path
-               return path
-               i+=1
+               try:
+                       open(path + ".ts")
+                       i += 1
+               except IOError:
+                       return path