path = os.path.abspath(file)
filename, ext = os.path.splitext(file)
ext = ext[1:]
- date_dir = datetime.datetime.fromtimestamp(os.path.getmtime(file))
- if ext in self.source_formats and \
- (date_dir >= self.date_limit and self.date_filter) and \
+ date_file = datetime.datetime.fromtimestamp(os.path.getmtime(file))
+
+ process = False
+ if self.date_filter:
+ if date_file >= self.date_limit:
+ process = True
+ else:
+ process = True
+
+ if ext in self.source_formats and process and \
(not is_processed or self.force_mode):
if ext == "webm":
self.remux(file)