Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[extractor/bravotv] Detect DRM #7171

Merged
merged 1 commit into from May 30, 2023
Merged

Conversation

bashonly
Copy link
Member

@bashonly bashonly commented May 30, 2023

Detect DRM-protected HLS formats and raise

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

Copilot Summary

🤖 Generated by Copilot at cc2995f

Summary

📥🔒🎞️

Add DRM detection and error handling to bravotv extractor. Use HEADRequest to check m3u8 URL for encryption.

Sing, O Muse, of the cunning coder who devised
A way to probe the hidden streams of video
And thwart the schemes of those who would disguise
Their m3u8 URLs with DRM's woe.

Walkthrough

  • Import HEADRequest class from yt_dlp.utils module to make HEAD requests (link)
  • Use HEADRequest to check the final URL of the m3u8 playlist and report DRM encryption if present (link)

@bashonly bashonly added the site-bug Issue with a specific website label May 30, 2023
@bashonly bashonly merged commit 1fe5bf2 into yt-dlp:master May 30, 2023
12 checks passed
@bashonly bashonly deleted the fix/bravo-report branch June 2, 2023 20:13
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant