Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
File time stamps incorrect #10303
File time stamps incorrect #10303
Comments
|
Modify date is not set from video upload date but according to |
|
OK that's good to know but it doesn't really help address the issue. If I re-download the video individually, Last-Modified date is displayed properly. Say a video from Aug 2013. But like I said if I attempt to batch download videos, somewhere in the middle, something happens and Last-Modifed returns the date & time of the download. |
|
Did you use the timestamp for some sorting tasks? I suggest
However, the current implementation uses |
|
Yes I would like to preserve the time stamps so I can sort and categorize files accordingly. Could you please provide an example on how to do what you suggested with --add-metadata? |
|
Sorry for the late response. In general the following command should work:
However, on my machine the written metadata is overwritten by following format conversions. I'm not sure whether it's a problem of ffmpeg or youtube-dl. Does this command work for you? |
|
Doesn't work :( First video gets downloaded is from Aug 1st but the Date Modified of the mp3 file shows today's date unfortunately. |
|
|
|
Four years later and this is still happening. Exact same behaviour. Download first 100 or so files? No problem, after a while it starts putting the current date and if I redownload it it works OK again. There's something definitely wrong when batch downloading a lot of stuff. @dstftw this should be reopened, IMHO. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.08.12. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Description of your issue, suggested solution and other information
Running below command to download 300+ videos from a YouTube channel. First 100 or something had the accurate file modified dates. Matching the date the videos were uploaded the channel. But the remaining files are dated today (day of download). Not sure what happened along the day. Any ideas? Running the command on Mac el-Capitan.
youtube-dl --download-archive downloaded.txt -ixv --audio-format mp3 --audio-quality 8 -o "%(title)s.%(ext)s" ytuser:enyay