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

[arte] Allow downloading age restricted content #8301

Conversation

StefanLobbenmeier
Copy link
Contributor

@StefanLobbenmeier StefanLobbenmeier commented Oct 7, 2023

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

I thought that arte.tv looks at the cookies to determine if the logged in user has confirmed their age. But to my surprise, the cookies are not sent in the request, instead there is a header called x-validated-age that is set by the client. When I set that client in yt-dlp we can also access age restricted content.

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 93c400c

Summary

🎥🔞🌐

Add X-Arte-User-Profile header to arte.py extractor to access age-restricted videos. This fixes the extraction of some Arte videos that are blocked by age verification.

config header set
Bypassing age check for Arte
Winter of content

Walkthrough

  • Bypass age verification for some Arte videos by adding a header to the config JSON request (link)

@StefanLobbenmeier
Copy link
Contributor Author

Related issue: #7782

@StefanLobbenmeier StefanLobbenmeier marked this pull request as ready for review October 7, 2023 11:41
@StefanLobbenmeier
Copy link
Contributor Author

Request in browser:
image

@StefanLobbenmeier StefanLobbenmeier changed the title Arte: Allow downloading age restricted content [arte] Allow downloading age restricted content Oct 7, 2023
yt_dlp/extractor/arte.py Outdated Show resolved Hide resolved
yt_dlp/extractor/arte.py Outdated Show resolved Hide resolved
@bashonly bashonly added site-bug Issue with a specific website pending-fixes PR has had changes requested labels Oct 7, 2023
StefanLobbenmeier and others added 2 commits October 7, 2023 14:35
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
@bashonly bashonly added pending-review PR needs a review and removed pending-fixes PR has had changes requested labels Oct 7, 2023
@bashonly bashonly self-assigned this Oct 9, 2023
@bashonly bashonly removed the pending-review PR needs a review label Oct 9, 2023
@bashonly bashonly merged commit 09f815a into yt-dlp:master Oct 9, 2023
16 checks passed
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

2 participants