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 Error 500 for "Enviado Especial" at ATresPlayer.com #11062

Closed
vitaminace33 opened this issue Oct 29, 2016 · 6 comments
Closed

HTTP Error 500 for "Enviado Especial" at ATresPlayer.com #11062

vitaminace33 opened this issue Oct 29, 2016 · 6 comments

Comments

@vitaminace33
Copy link

@vitaminace33 vitaminace33 commented Oct 29, 2016

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.10.26. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.10.26

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

$ youtube-dl --verbose http://www.atresplayer.com/television/programas/enviado-especial/temporada-1/capitulo-1-programa-caso-pablo-ibar_2016021000468.html 2&> error.txt
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://www.atresplayer.com/television/programas/enviado-especial/temporada-1/capitulo-1-programa-caso-pablo-ibar_2016021000468.html', u'2']
[debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8
[debug] youtube-dl version 2016.10.26
[debug] Python version 2.7.12 - Linux-4.4.0-45-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: avconv 2.8.8-0ubuntu0.16.04.1, avprobe 2.8.8-0ubuntu0.16.04.1, ffmpeg 2.8.8-0ubuntu0.16.04.1, ffprobe 2.8.8-0ubuntu0.16.04.1, rtmpdump 2.4
[debug] Proxy map: {}
[AtresPlayer] capitulo-1-programa-caso-pablo-ibar: Downloading webpage
[AtresPlayer] 20160210-EPISODE-00036-false: Downloading player JSON
[AtresPlayer] capitulo-1-programa-caso-pablo-ibar: Downloading timestamp
[AtresPlayer] capitulo-1-programa-caso-pablo-ibar: Downloading windows video JSON
ERROR: Unable to download JSON metadata: HTTP Error 500: Internal Server Error (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/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 403, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Although the site atresplayer.com is a video site for several Spanish channels (Antena 3, La Sexta), it does not work like regular video sites (e.g. youtube). Still the urls are pretty descriptive. So far I never had any problem to download videos of a tv show called "El Intermedio", like
http://www.atresplayer.com/television/programas/el-intermedio/temporada-11/capitulo-25-17-10-16-las-tarjetas-black-petit-comit_2016101700599.html
The site blocks non-Spanish ips, but youtube-dl seems to bypass this flawlessly (with no specially action by the user). However, it gives an error when downloading videos from the documentary show "Enviado Especial", as in the example above. This is the only program that gives me problems.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 31, 2016

When trying to play that video in the browser it asks to login, so you'll need to register and use --username or the .netrc file.

@vitaminace33
Copy link
Author

@vitaminace33 vitaminace33 commented Oct 31, 2016

You are right and not. Let me explain: in this particular site,to login allows to see some content or simply change the video quality form SD to HD (both features not available to non-logged users). Still, youtube-dl bypasses this (as well as region constraints) and always downloads the HD version (with no-login whatsoever). I guess the "blockage" is only done at some first level of the code and it is not checked afterwards. So, you are right when you say that perhaps I should login, but I have just tried it and I receive the same error (even through vpn). I can however see the content through the browser (while logged-in and vpn-connected to override region constraints).

Thx for your interest.

@@ -1,12 +1,14 @@
-$ youtube-dl --verbose http://www.atresplayer.com/television/programas/enviado-especial/temporada-1/capitulo-1-programa-caso-pablo-ibar_2016021000468.html 2&> error.txt
+$ youtube-dl --username '##########' --verbose http://www.atresplayer.com/television/programas/enviado-especial/temporada-1/capitulo-1-programa-caso-pablo-ibar_2016021000468.html
 [debug] System config: []
 [debug] User config: []
-[debug] Command-line args: [u'--verbose', u'http://www.atresplayer.com/television/programas/enviado-especial/temporada-1/capitulo-1-programa-caso-pablo-ibar_2016021000468.html', u'2']
-[debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8
+[debug] Command-line args: [u'--username', u'PRIVATE', u'--verbose', u'http://www.atresplayer.com/television/programas/enviado-especial/temporada-1/capitulo-1-programa-caso-pablo-ibar_2016021000468.html']
+Type account password and press [Return]: 
+[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
 [debug] youtube-dl version 2016.10.26
 [debug] Python version 2.7.12 - Linux-4.4.0-45-generic-x86_64-with-Ubuntu-16.04-xenial
 [debug] exe versions: avconv 2.8.8-0ubuntu0.16.04.1, avprobe 2.8.8-0ubuntu0.16.04.1, ffmpeg 2.8.8-0ubuntu0.16.04.1, ffprobe 2.8.8-0ubuntu0.16.04.1, rtmpdump 2.4
 [debug] Proxy map: {}
+[AtresPlayer] Logging in as ##########
 [AtresPlayer] capitulo-1-programa-caso-pablo-ibar: Downloading webpage
 [AtresPlayer] 20160210-EPISODE-00036-false: Downloading player JSON
 [AtresPlayer] capitulo-1-programa-caso-pablo-ibar: Downloading timestamp
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 31, 2016

I don't use the website regularly and don't have an account. But I don't think youtube-dl has never been able to download videos that require an account without login in.
By the way could you post the entire output when you use --username?

@vitaminace33
Copy link
Author

@vitaminace33 vitaminace33 commented Oct 31, 2016

[...] I don't think youtube-dl has never been able to download videos that require an account without login in.

Precisely, I am telling you that in this site you can. In fact, I use youtube-dl without login nor vpn and never had any problem. You can try to do so with the other link I provided above. However, if you use this same link to see its content from a browser (while out of Spain), you won't be able to do so.

By the way could you post the entire output when you use --username?

From the previous diff, you can see that the ONLY differences are the extra lines

Type account password and press [Return]: 
[AtresPlayer] Logging in as ##########
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 31, 2016

Precisely, I am telling you that in this site you can. In fact, I use youtube-dl without login nor vpn and never had any problem. You can try to do so in the other link I gave above. However, if you to see this same content from a browser and out of Spain, you won't be able to do so.

I'm from Spain, I can download videos that doesn't require an account in the browser (like http://www.atresplayer.com/television/programas/el-intermedio/temporada-11/capitulo-33-31-10-16-entrevista-iaki-gabilondo_2016103100888.html or http://www.atresplayer.com/television/programas/salvados/temporada-12/capitulo-3-entrevista-pedro-snchez_2016102800609.html), but both links you posted ask for registration. Does it also happen to you from Spain? Maybe you are right and you could download videos that require registration before, but I don't know if I have ever tried to.

From the previous diff, you can see that the ONLY differences are the extra lines

OK, I just looked at it and didn't notice it was the diff between both outputs, I wasn't paying too much attention :)

@vitaminace33
Copy link
Author

@vitaminace33 vitaminace33 commented Oct 31, 2016

The links from the TV shows you provide ask for registration only after some days (weeks). Still, you will anyway have to login to see the content on HD on the browser, if not only SD is available. Notice that, if you use youtube-dl on these links or the one I provided ("El Intermedio"), you will download the HD version directly without having to login and even from abroad.

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.