From 9cab726ec5be7698153e1862a12fb2ee464509a2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 25 Sep 2014 12:25:57 +0200 Subject: [PATCH] only import media files (audio, video) --- pandora_incoming.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_incoming.py b/pandora_incoming.py index 9a65939..8ca55a0 100755 --- a/pandora_incoming.py +++ b/pandora_incoming.py @@ -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: