only import media files (audio, video)

This commit is contained in:
j 2014-09-25 12:25:57 +02:00
parent 97c9df3d43
commit 9cab726ec5

View file

@ -40,6 +40,8 @@ class Incoming(object):
for f in files:
if f == 'defaults.json':
continue
if f.split('.')[-1] not in ox.file.EXTENSIONS['video'] + ox.file.EXTENSIONS['audio']:
continue
f = os.path.join(root, f)
st = os.stat(f)
if st.st_mtime < time.mktime(time.localtime()) - self.wait: