eoghanobrien's avatar

Total hours per series and Total hours watched per month

Hi, our company allows us to claim credit for watching Laracasts to include in our internal CE&D program, where one hour equals one credit. However, we currently need to manually calculate the time in hours/minutes for each series we watch.

It would be awesome if each series page included the total time needed to watch all episodes in the series.

Also, in the My Stats page, it would be helpful if you were able to see the number hours/minutes you spent watching videos per month as well as the number of episodes watched.

Any chance of getting this added to the site?

0 likes
3 replies
bobbybouwmann's avatar

Not sure if Jeffrey sees this, but if he does he might think about it!

@JeffreyWay Can we get this feature on the site?

2 likes
eoghanobrien's avatar

I don't know why I didn't think to do this before but here's a bookmarklet I created to calculate series length.

javascript:!function(){var%20e=$(%22.running-time%22).map(function(){return%20$(this).text().replace(/([^0-9:]+)/gi,%22%22).split(%22:%22).reverse().reduce(function(e,n,r){return%20e+n*Math.pow(60,r)},0)}).get().reduce(function(e,n){return%20e+n},0);alert(function(e){var%20n=~~(e/3600),r=~~(e%253600/60),t=e%2560,u=%22%22;return%20n%3E0%26%26(u+=n+%22:%22+(r%3C10%3F%220%22:%22%22)),u+=r+%22:%22+(t%3C10%3F%220%22:%22%22),u+=%22%22+t}(e))}();

Please or to participate in this conversation.