News for hackers. Stuff that matters.
Re:I'm an addict by BbzzbB on Thursday May 19, 2022 @07:50AM (#31433293)
Did you estimate the hours by summing total video lenghts in history?

As I recall there was no time spent stat, just video history eothout watchtime indication.

Re:I'm an addict by artemonster on Thursday May 19, 2022 @07:53AM (#31433323)
There is no "official" way of doing this (as I imagine it will scare people away). You have to export your watch history as JSON that contains watch date and video ID. Then you obtain API key from google and iterate over all video IDs and add up video lengths. Yes, this is inaccurate for cases when you scroll thorugh a video and not watch it completely.

For all of this there were multiple projects on github that do all of this + with plots.

Re:I'm an addict by aasasd on Sunday May 22, 2022 @06:13AM (#31466605)
Ackshually, the mobile apps have statistics on watching, which seem to include what was watched on the desktop. Here's the support page about the feature: https://support.google.com/youtube/answer/9052667

Apparently videos watched on the desktop aren't counted correctly, but I imagine it's not worse than summing the durations.