git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
the timer sucks
[enigma2.git]
/
lib
/
python
/
Tools
/
Directories.py
diff --git
a/lib/python/Tools/Directories.py
b/lib/python/Tools/Directories.py
index 9cd29511a9d3fd1046c10ea812620af479a2128c..85da53219063714786e00ae5e94ba8e8b05a26e4 100644
(file)
--- 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)
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
return path
- i+=1