diff -r f353f0da6f07 -r 60c1efd70423 gmyth-stream/server/lib.py --- a/gmyth-stream/server/lib.py Tue Apr 10 01:07:35 2007 +0100 +++ b/gmyth-stream/server/lib.py Fri Apr 13 20:33:36 2007 +0100 @@ -3,7 +3,7 @@ import os import stat -global ext = ['mpg', 'avi', 'mp4', 'nuv', 'mpeg', 'mov'] +ext = ['mpg', 'avi', 'mp4', 'nuv', 'mpeg', 'mov'] def now(): return time.strftime("%Y-%m-%d %H:%M:%S"); @@ -18,7 +18,7 @@ def which(prg): for d in bin_path_list: path = os.path.join(d, prg) - if os.path.exits(path): + if os.path.exists(path): st = os.stat(path) if st[stat.ST_MODE] & 0111: return path @@ -29,8 +29,8 @@ for name in files: if os.path.splitext(name)[1].strip(".") in ext: media = os.path.join(root,name) - if media not in file_list - file_list.append(os.path.join(root,name)) + if media not in file_list: + file_list.append(os.path.join(root,name)) return True