Is Media Extractor Broken?

Hi everyone,

I’ve been following this thread about the Media Extractor issues, and I believe I’ve found the likely cause and some supporting evidence. It seems very probable that a YouTube update around March 24th is what broke things.

Here’s why I think this, based on information I’ve gathered:

  • yt-dlp Updates: For those who don’t know, yt-dlp is a command-line video/audio downloader that media_extractor relies on. yt-dlp released two significant updates very recently:

    • Version 2025.03.25 (March 25th): This release specifically includes fixes for YouTube related issues, such as “Fix signature and nsig extraction for player 363db69b (#12725)” and “Fix PhantomJS nsig fallback (#12728)”. This clearly indicates YouTube changed something in their player around March 24th , breaking the signature extraction process that yt-dlp (and therefore media_extractor) depends on.

    • Version 2025.03.26 (March 26th): While the specific changelog details aren’t fully available, it’s highly likely this release contains further fixes related to the same YouTube update.

These rapid releases from yt-dlp strongly suggest they are reacting to a recent and breaking change from YouTube.

  • Reports of Issues on March 24th: Adding further weight to this theory, there are reports from March 24th (the same day as the likely YouTube update!) indicating that audio streaming from YouTube is no longer working with media_extractor.play_media and showing errors related to yt-dlp. This timing is extremely consistent with the yt-dlp fixes and points directly to a YouTube-related issue causing the problems we are seeing with Media Extractor.

  • GitHub Discussion: The GitHub pull request for yt-dlp (#12725) mentioned above provides even more technical detail. It confirms the failed nsig extraction for YouTube player version 363db69b and includes specific error details like KeyError(‘Yv’). This further solidifies that YouTube did indeed update their player and break compatibility.

In conclusion:

While we can’t be 100% certain without official confirmation from YouTube or the Home Assistant developers, all the evidence strongly points to a YouTube player update around March 24th as the root cause of the Media Extractor issues. yt-dlp, the underlying tool, has already released patches to address this.

Hopefully, this information is helpful. It might be worth checking if updating yt-dlp (if possible within the Home Assistant environment, I’m not sure how that works exactly) could resolve the issue for some users.

Let me know if you have any other thoughts or information!

1 Like