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

3sat #4589

Closed
user778899 opened this issue Dec 28, 2014 · 4 comments
Closed

3sat #4589

user778899 opened this issue Dec 28, 2014 · 4 comments

Comments

@user778899
Copy link

@user778899 user778899 commented Dec 28, 2014

Not a big deal ... but:

youtube-dl http://www.3sat.de/mediathek/?obj=xxx # ok
youtube-dl http://www.3sat.de/mediathek/?mode=play&obj=xxx # not ok

where xxx is the number of the video

Regards
Roland

P.S.: Thanks for your work :-)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 28, 2014

I bet you forgot to escape & or enclose the URL into quotes. Post the full output you get when running with --verbose option.

@user778899
Copy link
Author

@user778899 user778899 commented Dec 28, 2014

On 12/28/2014 08:23 PM, Sergey M. wrote:

I bet you forgot to escape |&| or enclose the URL into quotes. Post the full output you get when running with |--verbose| option
https://github.com/rg3/youtube-dl/blob/master/README.md#bugs.


Reply to this email directly or view it on GitHub #4589 (comment).

I had simply to edit the url and remove the substring "mode=play&" ... then it worked.

roland@roland-desktop:$ youtube-dl --verbose http://www.3sat.de/mediathek/?mode=play&obj=42946
[1] 8174
roland@roland-desktop:
$ [debug] System config: []
[debug] User config: ['-o', 'Downloads/%(title)s @ %(id)s/%(title)s.%(id)s.%(ext)s', '--write-info-json']
[debug] Command-line args: ['--verbose', 'http://www.3sat.de/mediathek/?mode=play']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.12.17.2
[debug] Python version 2.7.3 - Linux-3.2.0-74-generic-pae-i686-with-Ubuntu-12.04-precise
[debug] exe versions: avconv 0.8.16-4, avprobe 0.8.16-4, ffmpeg 0.8.16-4, ffprobe 0.8.16-4, rtmpdump 2.4
[debug] Proxy map: {}
[generic] ?mode=play: Requesting header
WARNING: Falling back on generic information extractor.
[generic] ?mode=play: Downloading webpage
[generic] ?mode=play: Extracting information
ERROR: Unsupported URL: http://www.3sat.de/mediathek/?mode=play; 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/bin/youtube-dl/youtube_dl/extractor/generic.py", line 660, in _real_extract
doc = parse_xml(webpage)
File "/usr/bin/youtube-dl/youtube_dl/utils.py", line 1444, in parse_xml
tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1301, in XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1643, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in _raiseerror
raise err
ParseError: undefined entity ü: line 5, column 81
Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 592, in extract_info
ie_result = ie.extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 243, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1060, in _real_extract
raise ExtractorError('Unsupported URL: %s' % url)
ExtractorError: Unsupported URL: http://www.3sat.de/mediathek/?mode=play; 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.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 28, 2014

As I said you have to escape ampersands or enclose the URL into quotes in order to prevent ampersands to be treated as control operators by shell: youtube-dl "http://www.3sat.de/mediathek/?mode=play&obj=42946"

@dstftw dstftw closed this Dec 28, 2014
@user778899
Copy link
Author

@user778899 user778899 commented Dec 28, 2014

On 12/28/2014 08:47 PM, Sergey M. wrote:

As I said you have to escape ampersands or enclose the URL into quotes in order to prevent ampersands to be treated as control
operators by shell: |youtube-dl "http://www.3sat.de/mediathek/?mode=play&obj=42946"|

Oh ...

I misunderstood you.

Now I know what you mean. Thanks for your hint.

Thanks and sorry for my stupidity ... I should have known this ;-)

Regards
Roland

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.