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

[http://ldt.iri.centrepompidou.fr] JW Player with content preventing HEAD method #5736

Closed
cregouby opened this issue May 17, 2015 · 3 comments
Closed

Comments

@cregouby
Copy link

@cregouby cregouby commented May 17, 2015

Hello,
JW player used in this Mooc site seems to prevent the HEAD method to succeed (403 forbidden) in the sequence of youtube-dl downloading the video.
Using Google-chrome & the JW player doesn't give the 403 problem and succeed playing the rtmp stream with Wireshark see frames RTMP onStatus('NetStream.Play.Start') with
Property 'description' String 'Started playing video/ldtplatform/upload/cours_ic01/cours2.mp4.' (I don't know if it helps)
Could you please help to solve it ?
Thanks a lot !
Christophe

creg@creg:/⟫ youtube-dl -i -v http://ldt.iri.centrepompidou.fr//ldtplatform/ldt/embediframe/?content_id=033d3548-bc0e-11e4-831a-00145ea4a2be&project_id=553b859c-bf39-11e4-831a-00145ea4a2be
[1] 27124
creg@creg:
/⟫ [debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-i', u'-v', u'http://ldt.iri.centrepompidou.fr//ldtplatform/ldt/embediframe/?content_id=033d3548-bc0e-11e4-831a-00145ea4a2be']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.05.15
[debug] Python version 2.7.9 - Linux-3.19.0-16-generic-x86_64-with-Ubuntu-15.04-vivid
[debug] exe versions: avconv 11.2-6, avprobe 11.2-6, rtmpdump 2.4
[debug] Proxy map: {}
[generic] ?content_id=033d3548-bc0e-11e4-831a-00145ea4a2be: Requesting header
WARNING: Could not send HEAD request to http://ldt.iri.centrepompidou.fr//ldtplatform/ldt/embediframe/?content_id=033d3548-bc0e-11e4-831a-00145ea4a2be: HTTP Error 403: FORBIDDEN
[generic] ?content_id=033d3548-bc0e-11e4-831a-00145ea4a2be: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 403: FORBIDDEN (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 312, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1710, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

[1]+ Termine 1 youtube-dl -i -v http://ldt.iri.centrepompidou.fr//ldtplatform/ldt/embediframe/?content_id=033d3548-bc0e-11e4-831a-00145ea4a2be

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 17, 2015

Note that you have to quote the url, otherwise youtube-dl only gets part of it (that's why you get the 403 Forbidden error).

But even with the full url it fails, so we'll have to add support for it.

@cregouby
Copy link
Author

@cregouby cregouby commented May 26, 2015

Thanks for your support jaimeMF !

@cregouby
Copy link
Author

@cregouby cregouby commented Jun 1, 2015

Hello JaimeMF.
Error on my side : a variable 'project_id' was missing in the url is missing and lead to the 403.
Adding that variable, I get an "unSupported Error: unsupported URL"
I will close this one and reoppen a proper issue for that
Thanks anyway
cregouby

@cregouby cregouby closed this Jun 1, 2015
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.