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

Please add support for www.mdr.de #2775

Closed
htgoebel opened this issue Apr 19, 2014 · 3 comments
Closed

Please add support for www.mdr.de #2775

htgoebel opened this issue Apr 19, 2014 · 3 comments

Comments

@htgoebel
Copy link

@htgoebel htgoebel commented Apr 19, 2014

$ youtube-dl --version
2014.04.19
$ youtube-dl http://www.mdr.de/fakt/video189002.html --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.mdr.de/fakt/video189002.html', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.19
[debug] Python version 2.7.6 - Linux-3.10...
[debug] Proxy map: {}
[generic] video189002: Requesting header
WARNING: Falling back on generic information extractor.
[generic] video189002: Downloading webpage
[generic] video189002: Extracting information
ERROR: Unsupported URL: http://www.mdr.de/fakt/video189002.html; [...]
Traceback (most recent call last):
  File "/home/.../lib/python/youtube_dl/extractor/generic.py", line 390, in _real_extract
    doc = parse_xml(webpage)
  File "/home/.../lib/python/youtube_dl/utils.py", line 1377, in parse_xml
    return xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: mismatched tag: line 85, column 226
Traceback (most recent call last):
  File "/home/.../lib/python/youtube_dl/YoutubeDL.py", line 514, in extract_info
    ie_result = ie.extract(url)
  File "/home/.../lib/python/youtube_dl/extractor/common.py", line 161, in extract
    return self._real_extract(url)
  File "/home/.../lib/python/youtube_dl/extractor/generic.py", line 630, in _real_extract
    raise ExtractorError('Unsupported URL: %s' % url)
ExtractorError: Unsupported URL: http://www.mdr.de/fakt/video189002.html; ...
@htgoebel
Copy link
Author

@htgoebel htgoebel commented Apr 19, 2014

The CSS-Path to the Script-Element loading the video is as follows (wrapped to be easier to read):

html body#video189002Body.node-fakt div#body-wrapper div#wrapperBody
div#globalCol div#content div#spalten-wrapper div#spalten-wrapper2
div#spalten-wrapper3 div#content-wrapper
div#inhalt-funktion div#inhalt div.objektdetail div.avStage script

The script is referencing to http://www.mdr.de/fakt/video189002-avCustom.xml. Within this XML-file, the video-informations can be found on xpath //assets/assets and the download-urls at xpath //assets/assets/progressiveDownloadUrl.

@phihag
Copy link
Contributor

@phihag phihag commented Apr 21, 2014

Thank you for the report. Support for the new MDR URLs has been added in youtube-dl 2014.04.21.1. You can type youtube-dl -U to update.

@phihag phihag closed this in e8f2025 Apr 21, 2014
@htgoebel
Copy link
Author

@htgoebel htgoebel commented Apr 21, 2014

Wow, thanks for implementing this so quickly :-)

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.