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

fix (workaround) not well-formed xml error #5421

Closed
wants to merge 1 commit into from

Conversation

sibbi77
Copy link

@sibbi77 sibbi77 commented Apr 13, 2015

This command: youtube-dl http://www.stern.de/wissen/natur/anhaengliches-reptil-wasserschildkroete-rueckt-taucher-nicht-von-der-pelle-2186820.html
errors out with:
[...]
File "C:\dev\Anaconda3\lib\site-packages\youtube_dl-2015.4.9-py3.4.egg\youtube_dl\extractor\generic.py", line 933, in _real_extract
bc_urls = BrightcoveIE._extract_brightcove_urls(webpage)
File "C:\dev\Anaconda3\lib\site-packages\youtube_dl-2015.4.9-py3.4.egg\youtube_dl\extractor\brightcove.py", line 188, in _extract_brightcove_urls
return [cls._build_brighcove_url(m) for m in matches]
File "C:\dev\Anaconda3\lib\site-packages\youtube_dl-2015.4.9-py3.4.egg\youtube_dl\extractor\brightcove.py", line 188, in
return [cls._build_brighcove_url(m) for m in matches]
File "C:\dev\Anaconda3\lib\site-packages\youtube_dl-2015.4.9-py3.4.egg\youtube_dl\extractor\brightcove.py", line 120, in _build_brighcove_url
object_doc = xml.etree.ElementTree.fromstring(object_str.encode('utf-8'))
File "C:\dev\Anaconda3\lib\xml\etree\ElementTree.py", line 1325, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 26, column 41

This PR "fixes" this error and allows to download the video.

@dstftw dstftw closed this in 476e109 Apr 14, 2015
dstftw added a commit that referenced this pull request Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant