youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Support youtube playlist

Open chrisjsewell opened this issue 3 years ago • 2 comments
trafficstars

Heya, would you support having a youtube-plist directive?

.. youtube-plist:: XYZ

The embedding HTML is essentially the same, but using the playlist shortcode like: https://www.youtube.com/embed/videoseries?list=XYZ

If yes, then I can probably make a PR

chrisjsewell avatar Jul 09 '22 20:07 chrisjsewell

Note, annoyingly I can't see a trivial way to get the thumbnail, without using the Google API (and thus needing an API key: https://stackoverflow.com/questions/10628760/how-to-get-a-youtube-playlist-thumbnail. This does work, though.

So then you would perhaps need to always provide two pieces of information:

.. youtube-plist:: XYZ
    :thumbnail: LMN

chrisjsewell avatar Jul 10 '22 01:07 chrisjsewell

Sure, it seems like a natural thing to do. I'd prefer youtube-playlist because readability is more important than saving 3 charachters.

Thanks.

dham avatar Jul 18 '22 02:07 dham