1.1 --- a/gmyth-stream/server/lib.py Tue Apr 10 01:07:35 2007 +0100
1.2 +++ b/gmyth-stream/server/lib.py Thu Apr 12 23:17:33 2007 +0100
1.3 @@ -3,7 +3,7 @@
1.4 import os
1.5 import stat
1.6
1.7 -global ext = ['mpg', 'avi', 'mp4', 'nuv', 'mpeg', 'mov']
1.8 +ext = ['mpg', 'avi', 'mp4', 'nuv', 'mpeg', 'mov']
1.9
1.10 def now():
1.11 return time.strftime("%Y-%m-%d %H:%M:%S");
1.12 @@ -18,7 +18,7 @@
1.13 def which(prg):
1.14 for d in bin_path_list:
1.15 path = os.path.join(d, prg)
1.16 - if os.path.exits(path):
1.17 + if os.path.exists(path):
1.18 st = os.stat(path)
1.19 if st[stat.ST_MODE] & 0111:
1.20 return path
1.21 @@ -29,8 +29,8 @@
1.22 for name in files:
1.23 if os.path.splitext(name)[1].strip(".") in ext:
1.24 media = os.path.join(root,name)
1.25 - if media not in file_list
1.26 - file_list.append(os.path.join(root,name))
1.27 + if media not in file_list:
1.28 + file_list.append(os.path.join(root,name))
1.29
1.30 return True
1.31