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

Do not touch/Retouch Date Modifieds timestamp after sponskrub "marking the shilling" #25

Closed
6 tasks done
barkoder opened this issue Mar 2, 2021 · 2 comments
Closed
6 tasks done

Comments

@barkoder
Copy link

barkoder commented Mar 2, 2021

This issue is a copy of one I reported here - yt-dlp/yt-dlp#124
I was asked to open an issue here as well.

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running yt-dlp version 2021.03.01
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

$ yt-dlp -v https://www.youtube.com/watch?v=Qtml7imdBsU -f 251
[debug] User config: ['--no-cache-dir', '--geo-bypass', '--no-call-home']
[debug] Command-line config: ['-v', 'https://www.youtube.com/watch?v=Qtml7imdBsU', '-f', '251']
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] yt-dlp version 2021.03.01 (zip)
[debug] Python version 3.6.1 (CPython 64bit) - CYGWIN_NT-6.1-2.8.0-0.309-5-3-x86_64-64bit-WindowsPE
[debug] exe versions: ffmpeg 4.3.2-2021-02-20-essentials_build-www.gyan.dev, ffprobe 4.3.2-2021-02-20-essentials_build-www.gyan.dev
[debug] Proxy map: {}
[youtube] Qtml7imdBsU: Downloading webpage
[debug] Sort order given by user:
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] Downloading format(s) 251
[download] ASMR Antique Haul (Books, Bottles & Trinkets ) [Qtml7imdBsU].webm has already been downloaded
[SponSkrub] Trying to mark sponsor sections
[debug] sponskrub command line: sponskrub -chapter -- Qtml7imdBsU 'ASMR Antique Haul (Books, Bottles & Trinkets ) [Qtml7imdBsU].webm' 'ASMR Antique Haul (Books, Bottles & Trinkets ) [Qtml7imdBsU].spons.webm'
size=   27396kB time=00:28:10.66 bitrate= 132.7kbits/s speed=4.9e+03x
Downloading video sponsor data
Marking the shilling...
Done!
[SponSkrub] Sponsor sections have been marked

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 :)

@faissaloo
Copy link
Owner

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

faissaloo added a commit that referenced this issue Mar 13, 2021
@faissaloo
Copy link
Owner

This should now be fixed as of 3.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants