Youtube Live Stream thumbnails don't get downloaded

Created on 6 August 2025, 9 days ago

Problem/Motivation

The Remote Video media type supports both regular youtube video URLs (e.g., https://youtu.be/OUz8qxs6l4M) and live stream video URLs (e.g., https://www.youtube.com/live/k15PG3Rk-5o).

For Live stream URLs, the thumbnail file does not get created and the thumbnail__target_id in the media table gets set to the fallback video.png file.

Steps to reproduce

  1. Enable Media module
  2. Configure a Remove Video media type with a Remote Video source
  3. Create a Remote Video entity
  4. Add a Live stream URL like https://www.youtube.com/live/k15PG3Rk-5o
  5. Save and publish entity
  6. Notice thumbnail in media listing is missing
  7. Check the media entity in the media_field_data table
  8. Notice it is set to the file id for the fallback video.png image
  9. Check the file_managed table
  10. Sort by entity id descending
  11. You should see a recently created thumbnail
  12. Notice you don't

✨ Feature request
Status

Active

Version

11.1 πŸ”₯

Component

media system

Created by

πŸ‡ΊπŸ‡ΈUnited States banoodle San Francisco, CA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @banoodle
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    In Drupal core changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies β†’ . Also mentioned on the version β†’ section of the list of issue fields documentation. Thanks.

  • πŸ‡ΊπŸ‡ΈUnited States banoodle San Francisco, CA

    Well, this is embarrassing: I just realized this is working correctly. It turns out the live youtube videos I was testing with just genuinely lacked thumbnails in youtube. For the Live videos where the client uploaded/set a thumbnail on YouTube, Drupal creates the file entity and sets the thumbnail target correctly.

    Sorry about that!

Production build 0.71.5 2024