diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-16 00:44:13 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-16 00:44:13 +0000 |
| commit | 760994da671541bb1a70424839592858d5e5c080 (patch) | |
| tree | 8a8ac12cc845c3d624f5eafe0e5536d2786e7a42 /lib/python | |
| parent | fc8d7d9463a9305b68da5b439c2a41061cb962bb (diff) | |
| download | enigma2-760994da671541bb1a70424839592858d5e5c080.tar.gz enigma2-760994da671541bb1a70424839592858d5e5c080.zip | |
don't use glob
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 |
