diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Tools/Directories.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/Tools/Directories.py b/lib/python/Tools/Directories.py index 9cd29511..85da5321 100644 --- a/lib/python/Tools/Directories.py +++ b/lib/python/Tools/Directories.py @@ -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 |
