Repository navigation
[Youtube] Extract exact timestamps #1803
Description
Activity
- addedbugBug that is not site-specificBug that is not site-specifictriageUntriaged issueUntriaged issue
on Nov 26, 2021 - addedsite-enhancementFeature request for some websiteFeature request for some websiteand removedbugBug that is not site-specificBug that is not site-specific
on Nov 26, 2021 - changed the title
[-]Inaccurate timestamps[/-][+][Youtube] Extract exact timestamps[/+]on Nov 26, 2021 They are probably using Youtube Data API which gives the uploaded timestamp. But we can only use the innertube API which only gives the uploaded date
Reacted by coletdjnz, Lesmiscore and WillOK. Why is it they can use that and we aren't allowed?
Also, would it be possible to extract timestampts from other video sites such as BitChute and Odysee? That would save me a bit of extraneous work doing 'touch -t' on the downloaded videoes.
youtube-dl will not use any kind of APIs involving sharing personal keys due to obvious reasons.
Originally posted by @dstftw in ytdl-org/youtube-dl#376 (comment)If you require accurate timestamps, use the official data API yourself with your own personal API key. As @pukkandan mentioned, it is not possible to get the accurate timestamp from the Innertube API or the website (unless someone manages to find a way).
Also, would it be possible to extract timestampts from other video sites such as BitChute and Odysee? That would save me a bit of extraneous work doing 'touch -t' on the downloaded videoes.
open a site feature request issue for each of these sites
That would save me a bit of extraneous work doing 'touch -t' on the downloaded videoes.
Note that the mtime of the videos are NOT the
timestampas extracted by yt-dlp. If you want the mtime, there is no choice but to get it from the downloaded file or by probing the download URLClosing since it is impossible afaik. If it ever becomes possible to implement (without using the Data API ofc), it can be re-opened
Checklist
Description
When downloading YouTube videos the timestamps given to the downloaded files are inaccurate. I suppose this can be improved by copying the method used by Youtube DataViewer (https://citizenevidence.amnestyusa.org/).
Can this be impletemented?
Verbose log