Add thumbnails for YouTube playlist URLs

On latest tests-passed branch, topics with a bare YouTube playlist URL are OneBoxing correctly, but no thumbnail is produced. An example:

https://www.youtube.com/playlist?list=PLJtitKU0CAeiFIQUX81qqt4laVWfa-Gtz

A related question, is it possible to rebake only posts that have no thumbail? i.e. a version of rake posts:rebake that includes a query?

2 Likes

Thanks @D8vid, I’ll take a look

3 Likes

For normal YouTube videos, we use a custom embedding system. This doesn’t support the playlist UI. So that explains the difference.

https://github.com/discourse/discourse/commit/076ed66e690bb9a8899103f75ce47560594d0bf0

We’re not planning any immediate changes here, but I’ll leave this topic open as a feature request.

7 Likes