only import media files (audio, video)
This commit is contained in:
parent
97c9df3d43
commit
9cab726ec5
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ class Incoming(object):
|
||||||
for f in files:
|
for f in files:
|
||||||
if f == 'defaults.json':
|
if f == 'defaults.json':
|
||||||
continue
|
continue
|
||||||
|
if f.split('.')[-1] not in ox.file.EXTENSIONS['video'] + ox.file.EXTENSIONS['audio']:
|
||||||
|
continue
|
||||||
f = os.path.join(root, f)
|
f = os.path.join(root, f)
|
||||||
st = os.stat(f)
|
st = os.stat(f)
|
||||||
if st.st_mtime < time.mktime(time.localtime()) - self.wait:
|
if st.st_mtime < time.mktime(time.localtime()) - self.wait:
|
||||||
|
|
Loading…
Reference in a new issue