Extensions icon indicating copy to clipboard operation
Extensions copied to clipboard

[ReadingTime] YouTube Support

Open Wdavery opened this issue 6 years ago • 5 comments

ReadingTime should either report the video length for YouTube video, or if that's too complicated, just ignore them altogether. "<1m" is not very helpful.

Wdavery avatar Aug 28 '18 20:08 Wdavery

Maybe something for @kevinpapst or @PhieF ? :-)

Alkarex avatar Aug 28 '18 21:08 Alkarex

Hm, I don't think that really belongs to the Youtube plugin... as it neither communicates with Youtube and nor has any active frontend logic/JS. But it could be done with Javascript, there is a length_seconds parameter included in e.g. http://youtube.com/get_video_info?video_id=123456 There might be a better API, that was the first working version I could find.

kevinpapst avatar Aug 29 '18 18:08 kevinpapst

There's the proper API, but since the deprecation of v2 it requires a dev key so it's not half as useful for generic use as it sounds at first glance: https://developers.google.com/youtube/v3/docs/videos

I'd just ignore it. :-)

Frenzie avatar Aug 29 '18 18:08 Frenzie

The duration is not provided in the YouTube RSS feeds, so it would indeed require another request per video

Alkarex avatar Sep 02 '18 16:09 Alkarex

Then I could simply remove the reading time estimation for youtube videos... but I would have to do it for any kind of "video-only" content, and I don't see a good way to automate this.

(don't hesitate to ping me next time, I wasn't aware of this issue ^^)

lapineige avatar Sep 03 '19 17:09 lapineige