aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-04-05 18:50:25 +0100
committerdirkf <fieldhouse@gmx.net>2023-04-05 19:05:16 +0100
commit9f4d83ff4255d8840c0fa9b367722c129ebecdb2 (patch)
tree55bf8e7ce4e991deccbc99e19b6585b79597197d /youtube_dl/options.py
parent25124bd640acf2fbae71b2a52738ee41da548fb1 (diff)
downloadyoutube-dl-9f4d83ff4255d8840c0fa9b367722c129ebecdb2.tar.xz
[options] Add --mtime option, unsets default --no-mtime
* resolves #1709 (!)
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 7b059b51e..d802b7e59 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -732,8 +732,12 @@ def parseOpts(overrideArguments=None):
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',