self.force_mode = args.force
self.verbose_mode = args.verbose
self.remux_only_mode = args.remux_only
+ self.date_filter = args.date_filter
if args.input_formats:
self.input_formats = args.input_formats
offsets = {}
if len(source_files) > 1 and self.auto_offset_mode:
date_file = datetime.datetime.fromtimestamp(os.path.getmtime(source_files[0]))
- if date_file >= self.date_limit:
+ if date_file >= self.date_limit and self.date_filter:
offsets = self.find_best_offset(source_files)
for file in source_files:
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:
+ if ext in self.source_formats and (date_dir >= self.date_limit and self.date_filter):
if ext == "webm":
self.remux(file)
if not self.remux_only_mode:
parser.add_argument('-va', '--vaapi', help='use VAAPI encoder', action="store_true")
parser.add_argument('-ao', '--auto_offset', help='add auto offset based on audio correlation', action="store_true")
parser.add_argument('-dr', '--dry_run', help='dry run', action="store_true")
+ parser.add_argument('-df', '--date_filter', help='filter by specific date', action="store_true")
parser.add_argument('-f', '--force', help='force mode', action="store_true")
parser.add_argument('-v', '--verbose', help='verbose mode', action="store_true")
parser.add_argument('-r', '--remux_only', help='remux only mode', action="store_true")