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 time block #23761

Closed
nehrwert opened this issue Jan 16, 2020 · 0 comments
Closed

ARD mediathek time block #23761

nehrwert opened this issue Jan 16, 2020 · 0 comments

Comments

@nehrwert
Copy link

@nehrwert nehrwert commented Jan 16, 2020

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2020.01.15
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

Some videos of the ARD mediathek are time blocked, so you can only watch them in a certain time frame. For example only betwee 22:00-6:00 for this video:
https://www.ardmediathek.de/swr/player/Y3JpZDovL3N3ci5kZS9hZXgvbzExODk0MjA/

youtube-dl "https://www.ardmediathek.de/swr/playe/Y3JpZDovL3N3ci5kZS9hZXgvbzExODk0MjA/" -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.ardmediathek.de/swr/player/Y3JpZDovL3N3ci5kZS9hZXgvbzExODk0MjA/', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.01.15
[debug] Python version 2.7.17 (CPython) - Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6
[debug] Proxy map: {}
[ARDBetaMediathek] Y3JpZDovL3N3ci5kZS9hZXgvbzExODk0MjA: Downloading webpage
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/ard.py", line 394, in _real_extract
    self._sort_formats(formats)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1327, in _sort_formats
    raise ExtractorError('No video formats found')
ExtractorError: No video formats found;

In the page source of that site I found this string
"https:\u002F\u002Fhlsodswr-vh.akamaihd.net\u002Fi\u002Fswrfernsehen\u002Fdokumentarfilm\u002F1189420,.s,.sm,.m,.ml,.l,.xl,.xxl,.mp4.csmil\u002Fmaster.m3u8"

out of which I could build working link:
https://pdodswr-a.akamaihd.net/swrfernsehen/dokumentarfilm/1189420.xl.mp4

Is it possible that youtube-dl could do that automatically so that you can download videos outside of the "allowed" timeframe?

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.