Skip to content

Commit

Permalink
[options] Add --mtime option, unsets default --no-mtime
Browse files Browse the repository at this point in the history
* resolves #1709 (!)
  • Loading branch information
dirkf committed Apr 5, 2023
1 parent 25124bd commit 9f4d83f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion youtube_dl/options.py
Expand Up @@ -731,9 +731,13 @@ def _comma_separated_values_options_callback(option, opt_str, value, parser):
'--no-part',
action='store_true', dest='nopart', default=False,
help='Do not use .part files - write directly into output file')
filesystem.add_option(
'--mtime',
action='store_true', dest='updatetime', default=True,
help='Use the Last-modified header to set the file modification time (default)')
filesystem.add_option(
'--no-mtime',
action='store_false', dest='updatetime', default=True,
action='store_false', dest='updatetime',
help='Do not use the Last-modified header to set the file modification time')
filesystem.add_option(
'--write-description',
Expand Down

0 comments on commit 9f4d83f

Please sign in to comment.