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

[ARD:mediathek] Bypass age restrictions #11129

Closed
madduck opened this issue Nov 6, 2016 · 1 comment
Closed

[ARD:mediathek] Bypass age restrictions #11129

madduck opened this issue Nov 6, 2016 · 1 comment

Comments

@madduck
Copy link

@madduck madduck commented Nov 6, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.11.04
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

The ARD:Mediathek has this funny "feature" whereby certain videos are not
available during (CET/CEST) daytime, using server-side time checks. They do
this do protect children (with arguable value), but they are also imposing
inconvenience upon everyone in other timezones.

The restriction can easily be circumvented, e.g. using this
site
, and it'd be trivial to add this to
youtube-dl.

The following instructions have been worked out by Birk Blechschmidt, who
shared this info with me specifically for the purpose of this feature request:

  1. Given a URL like
    http://www.ardmediathek.de/tv/Tatort/Echolot/Das-Erste/Video?bcastId=602916&documentId=38642286
    extract the documentID

  2. Call
    http://mediathek.daserste.de/play/media/{$documentId}?devicetype=pc&features=flash
    with {$documentID} replaced by the extracted ID. This will yield
    a JSON structure.

  3. From the contained _mediaArray array, extract the object that has
    _plugin == 1. There will be a sibling _mediaStreamArray array which
    lists all the available direct download/stream URLs (_stream) together
    with a _quality label (integer, the higher the better…)

You can inspect the JSON dump like this:

GET 'http://mediathek.daserste.de/play/media/38642286?devicetype=pc&features=flash' | python -m json.tool

It'd be great to have this

@madduck madduck changed the title [ARD:mediathek] Bypass age restrictionst [ARD:mediathek] Bypass age restrictions Nov 6, 2016
@dstftw dstftw closed this in 98708e6 Nov 6, 2016
@madduck
Copy link
Author

@madduck madduck commented Nov 6, 2016

Wow, it's as simple as that… I tried the patch and it seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.