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.
feature that changed file date to upload date seems to no longer work #536
Comments
|
I'm using ext4 if that matters. I had used reiserfs4 I think before, but ext4 gave me way better performance. |
For the longest time, youtube-dl had this feature.. it would take the date and time that the video was uploaded and change the file date to that date. It seems like that no longer happens by default, and I cannot find where to explicitly make it happen. Instead the date and time seem to be when I downloaded the video. I had been downloading videos from this channel: https://www.youtube.com/user/TheYoungTurks/videos and then using ls -rt to build a playlist so I could watch them in order. Because I download in a couple of processes at once, it ends up that the order is mucked up. These are the options I use (I wrote a script to preserve them:
./youtube-dl -R 5 -i -n -c --write-srt -o "%(uploader)s-%(stitle)s-%(id)s.%(ext)s" "$vid"
I actually just added --write-srt tonight because I saw it while looking for this option. Before this I did not use it.
Does it maybe have a different effect if the video was uploaded on the same day but different times? if so is there a way to make the upload date include a time in some way so I can order things differently?