Skip to content

MediaToolsPro v0.2.3

Choose a tag to compare

@NaturalDevCR NaturalDevCR released this 06 Jun 07:01
· 1 commit to main since this release

Bug Fix

YouTube DRM errors on public videos

Problem: Every download attempt failed with:

ERROR: [youtube] VIDEO_ID: This video is DRM protected

Root Cause: YouTube now serves DRM-only formats to logged-in sessions for many previously-public videos. The app was trying with cookies first, which triggered the DRM gate.

Fix: The app now tries without cookies first for all YouTube requests:

  1. list_formats → anonymous request first, cookies only if needed
  2. start_download → anonymous request first, cookies only if needed

This mirrors what works in browsers and other tools: anonymous YouTube requests often receive non-DRM streams, while logged-in sessions get DRM-only formats.

Additional changes:

  • Added "drm protected" and "drm" to the error detection heuristics so the app knows when to skip cookies.
  • Added a friendly error message explaining DRM restrictions and suggesting a yt-dlp update.

How to test

  1. Remove or keep your cookies (the app will try anonymous first regardless)
  2. Paste any public YouTube URL
  3. The app should now list formats and download successfully

Note: Some videos may genuinely be DRM-protected (e.g., YouTube Premium originals). In those cases, no tool can download them.