Closed barkoder closed 3 years ago
Nice spot, lemme scribble down some stuff for when I go to implement this.
Lets put this as an optional flag we should probably figure out what options people are using and how often to decide more sensible defaults longer term but probably not enough users for that just yet
https://dlang.org/phobos/std_file.html#setTimes
https://dlang.org/phobos/std_file.html#getTimes
This should now be fixed as of 3.7.0
This issue is a copy of one I reported here - https://github.com/yt-dlp/yt-dlp/issues/124
I was asked to open an issue here as well.
Checklist
Verbose log
Description
I don't know if I should open this in sponskrub or here.
Steps to reproduce:
1. Run
$ yt-dlp --no-sponskrub https://www.youtube.com/watch?v=Qtml7imdBsU -f 251
2. Check timestamps of the downloaded file and remember it.
3. Then Run
$ yt-dlp https://www.youtube.com/watch?v=Qtml7imdBsU -f 251
4. Marking the shilling..
5. Check timetamps of the same file after sponskrub has "marked the shilling..."
6. File's timestamps are now set to current system time.
Behavior: Date modified for the file is touched to current system time after marking sponsor sections using sponskrub.
Expected behavior: Date modifed and other file timestamps should be re-touched to whatever it was originally pre-sponskrub.
Other notes/Possible solutions? idk 🤷 -
youtube-dl --add-metadata
or
yt-dlp --no-sponskrub --add-metadata
is able to add metadata without changing the data modifieds of the original file. Might want to look at the code that does that.
Thank you :)