Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there an online web site to calculate how many minutes in a YouTube playlist?

1 view
Skip to first unread message

Ant

unread,
Mar 6, 2023, 5:48:41 PM3/6/23
to
https://www.youtube.com/playlist?list=PLMX26aiIvX5oCR4bBg2j0W4KKgjYtYBfv
-- I just want to know its exact total time.

Thank you for reading and hopefully answering soon. :)
--
"My righteousness draws near speedily, my salvation is on the way, and my arm will bring justice to the nations. The islands will look to me and wait in hope for my arm." --Isaiah 51:5. China's 3-Body S1 was good overall. 2 much 2 C & do!
Note: A fixed width font (Courier, Monospace, etc.) is required to see this signature correctly.
/\___/\ Ant(Dude) @ http://aqfl.net & http://antfarm.home.dhs.org.
/ /\ /\ \ Please nuke ANT if replying by e-mail.
| |o o| |
\ _ /
( )

Tavis Ormandy

unread,
Mar 16, 2023, 7:40:21 PM3/16/23
to
On 2023-03-06, Ant wrote:
> https://www.youtube.com/playlist?list=PLMX26aiIvX5oCR4bBg2j0W4KKgjYtYBfv
> -- I just want to know its exact total time.
>
> Thank you for reading and hopefully answering soon. :)

I don't know, but I would just use devtools.

Here is how I would do it (only tested with Chrome), but press F12 on
that page and then type this into the console:

$$('ytd-thumbnail-overlay-time-status-renderer').
map(a => a.innerText.split(':').reverse()).
map(a => parseInt(a[0]) + parseInt(a[1]) * 60 + parseInt(a[2]??0) * 3600).
reduce((n,a) => n + a, 0) / 60 / 60

That's the runtime in hours (22.6), or remove the last '/ 60' to get minutes.

The $$() is a shorthand to query elements, then just extracting the
time and converting to seconds.

Tavis.

--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger tav...@sdf.org
_\_V _( ) _( ) @taviso

Ant

unread,
Mar 18, 2023, 9:55:35 PM3/18/23
to
Tavis Ormandy <tav...@gmail.com> wrote:
> On 2023-03-06, Ant wrote:
> > https://www.youtube.com/playlist?list=PLMX26aiIvX5oCR4bBg2j0W4KKgjYtYBfv
> > -- I just want to know its exact total time.
> >
> > Thank you for reading and hopefully answering soon. :)

> I don't know, but I would just use devtools.

> Here is how I would do it (only tested with Chrome), but press F12 on
> that page and then type this into the console:

> $$('ytd-thumbnail-overlay-time-status-renderer').
> map(a => a.innerText.split(':').reverse()).
> map(a => parseInt(a[0]) + parseInt(a[1]) * 60 + parseInt(a[2]??0) * 3600).
> reduce((n,a) => n + a, 0) / 60 / 60

> That's the runtime in hours (22.6), or remove the last '/ 60' to get minutes.

> The $$() is a shorthand to query elements, then just extracting the
> time and converting to seconds.

> Tavis.

What about minutes and seconds with the hour?
--
"My mouth is filled with your praise, declaring your splendor all day long." --Psalm 71:8. Slammy times with heavy rain with leaks, gatherings, March madnesses, long commutes, offline, etc. :(
0 new messages