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 - URL-format changed #8652

Closed
hurda opened this issue Feb 24, 2016 · 2 comments
Closed

ARD - URL-format changed #8652

hurda opened this issue Feb 24, 2016 · 2 comments

Comments

@hurda
Copy link
Contributor

@hurda hurda commented Feb 24, 2016

German ARD changed their URL format, and downloading with youtube-dl needs workarounds now.
They flipped the position of bcastID and documentID.

Example: http://www.ardmediathek.de/tv/Nachtmagazin/nachtmagazin/Das-Erste/Video?bcastId=331152&documentId=33606140

First try:

>youtube-dl -F --print-traffic -v http://www.ardmediathek.de/tv/Nachtmagazin/nac
htmagazin/Das-Erste/Video?bcastId=331152&docum
entId=33606140
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-F', u'--print-traffic', u'-v', u'http://www.ardme
diathek.de/tv/Nachtmagazin/nachtmagazin/Das-Erste/Video?bcastId=331152']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2016.02.22
[debug] Python version 2.7.10 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-73361-g03b2b40, ffprobe N-73361-g03b2b40, rtmpdum
p 2.4
[debug] Proxy map: {}
[ARD:mediathek] Video: Downloading webpage
send: u'GET /tv/Nachtmagazin/nachtmagazin/Das-Erste/Video?bcastId=331152 HTTP/1.
1\r\nHost: www.ardmediathek.de\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Enco
ding: gzip, deflate\r\nAccept: text/html,application/xhtml+xml,application/xml;q
=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/201
50101 Firefox/44.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\
nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Server: Apache-Coyote/1.1
header: X-Robots-Tag: noindex,follow
header: Content-Type: text/html;charset=UTF-8
header: Content-Encoding: gzip
header: Content-Length: 9506
header: Date: Wed, 24 Feb 2016 15:27:41 GMT
header: Connection: close
header: Vary: Accept-Encoding
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPErro
r()); please report this issue on https://yt-dl.org/bug . Make sure you are usin
g the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl
 with the --verbose flag and include its complete output.
  File "youtube_dl\extractor\common.pyo", line 355, in _request_webpage
  File "youtube_dl\YoutubeDL.pyo", line 1905, in urlopen
  File "urllib2.pyo", line 437, in open
  File "urllib2.pyo", line 550, in http_response
  File "urllib2.pyo", line 475, in error
  File "urllib2.pyo", line 409, in _call_chain
  File "urllib2.pyo", line 558, in http_error_default

'documentId' is not recognized as an internal or external command,
operable program or batch file.

Running youtube-dl with the URL in quotes

>youtube-dl -F --print-traffic -v "http://www.ardmediathek.de/tv/Nachtmagazin/nachtmagazin/Das-Erste/Video?bcastId=331152&documentId=33606140"

or manually flipping the two parameters works around this problem.

>youtube-dl -F --print-traffic -v http://www.ardmediathek.de/tv/Nachtmagazin/nachtmagazin/Das-Erste/Video?documentId=33606140&bcastId=331152

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 24, 2016

It has nothing to do with arguments' position in query. You must always put URL in quotes when & is present.

@dstftw dstftw closed this Feb 24, 2016
@hurda
Copy link
Contributor Author

@hurda hurda commented Feb 24, 2016

Alright, thank you.

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
2 participants
You can’t perform that action at this time.