Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"no-mtime" option missing in ydl_opts for python? #23574

Closed
CyanSlinky opened this issue Dec 30, 2019 · 1 comment
Closed

"no-mtime" option missing in ydl_opts for python? #23574

CyanSlinky opened this issue Dec 30, 2019 · 1 comment
Labels

Comments

@CyanSlinky
Copy link

@CyanSlinky CyanSlinky commented Dec 30, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

I want "Date Modified" to be the time i downloaded the video and not the time it was uploaded.
If i understand correctly then "no-mtime" is supposed to do this?
but i'm using python and ydl_opts so i can't do --no-mtime as far as i know?

I searched through all available options here but couldn't find "no-mtime" or anything similar.

Here's my ydl_opts, i've tried every variation i could think of for "no-mtime" separately and together, but nothing seems to change the timestamp to the time of download instead of upload. Although it does seem to be the time of download while it's downloading but as soon as it's done it changes it to the time of upload.

ydl_opts = {
        'ignoreerrors': True, 
        'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
        'merge-output-format': True,
        'outtmpl': output_template, #'quiet': True, 'no_warnings': True
        'nomtime': True,
        'no-mtime': True,
        'no_mtime': True
    }
@CyanSlinky CyanSlinky added the question label Dec 30, 2019
@s104346
Copy link

@s104346 s104346 commented Dec 30, 2019

What you are looking for is updatetime:

The following parameters are not used by YoutubeDL itself, they are used by
the downloader (see youtube_dl/downloader/common.py):
nopart, updatetime, buffersize, ratelimit, min_filesize, max_filesize, test,
noresizebuffer, retries, continuedl, noprogress, consoletitle,
xattr_set_filesize, external_downloader_args, hls_use_mpegts,
http_chunk_size.

updatetime: Use the Last-modified header to set output file timestamps.

@remitamine remitamine closed this Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.