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

Can not download video #5341

Open
ghost opened this issue Apr 1, 2015 · 1 comment
Open

Can not download video #5341

ghost opened this issue Apr 1, 2015 · 1 comment

Comments

@ghost
Copy link

@ghost ghost commented Apr 1, 2015

Hello.

There is a university site here in Vienna.

It has embedded flash player. I can watch the video in the browser (firefox) fine.

But I want to save it locally too, because I want to watch it offline too - sometimes
my internet connection is not up.

Here is what I did - keep in mind that --password xxx is not my real password; I use my real password but I get something strange.

youtube-dl --verbose --username shevegen --password xxxxx https://multimedia.boku.ac.at/multimedia-intern/2011SS/agrarmaerkte_schiebel/20110621/agrarmaerkte20110621.html

Here is what I get:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--username', u'PRIVATE', u'--password', u'PRIVATE', u'https://multimedia.boku.ac.at/multimedia-intern/2011SS/agrarmaerkte_schiebel/20110621/agrarmaerkte20110621.html']
[debug] Encodings: locale ISO-8859-1, fs ISO-8859-1, out ISO-8859-1, pref ISO-8859-1
[debug] youtube-dl version 2015.03.28
[debug] Python version 2.7.9 - Linux-3.2.29-i686-Intel-R-_Celeron-R-CPU_G1630@_2.80GHz-with-slackware-14.0
[debug] exe versions: ffmpeg 2.6.1, ffprobe 2.6.1
[debug] Proxy map: {}
[generic] agrarmaerkte20110621: Requesting header

WARNING: Could not send HEAD request to https://multimedia.boku.ac.at/multimedia-intern/2011SS/agrarmaerkte_schiebel/20110621/agrarmaerkte20110621.html: HTTP Error 401: Unauthorized
[generic] agrarmaerkte20110621: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 401: Unauthorized (caused by HTTPError()); 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.
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 314, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1673, 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)

I do not know what this error means. Perhaps it could become more specific?

The HTML code in question is this here:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>Agrarmärkte - 21.06.2011</title>
  </head>

  <body style="background-color:#000;">
  <div align="center">
    <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="720" height="404">
        <param name="movie" value="player.swf" />

        <param name="allowfullscreen" value="true" />
        <param name="allowscriptaccess" value="always" />
        <param name="flashvars" value="agrarmaerkte20110517.mp4%26autostart=true" />
        <embed
            type="application/x-shockwave-flash"
            id="player2"
            name="player2"
            src="player.swf" 
            width="720" 
            height="423" 
            allowscriptaccess="always" 
        allowfullscreen="true"
            flashvars="file=agrarmaerkte20110621.mp4&autostart=true" 
        />
    </object> <!-- beim zweiten "height": Videovertikale+20 (für Steuerleiste im Player) -->
    </div>
  </body>
</html>
@rrooij
Copy link
Contributor

@rrooij rrooij commented Apr 10, 2015

Is there a test account available? So that the youtube-dl developers can test the site with username and password?

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