Atresplayer broken: ERROR: Unsupported URL
See original GitHub issue-
I’ve verified and I assure that I’m running youtube-dl 2018.04.25
-
At least skimmed through the README, most notably the FAQ and BUGS sections
-
Searched the bugtracker for similar issues including closed ones
-
Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser
-
Bug report (encountered problems with youtube-dl)
[nekmo@homura /tmp]$ youtube-dl -v 'https://www.atresplayer.com/lasexta/programas/al-rojo-vivo/abril-2018/cristina-cifuentes-dimite-y-denuncia-una-campana-de-acoso-la-tolerancia-cero-contra-la-corrupcion-tiene-un-precio_5ae06d1f7ed1a84af193644b/'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.atresplayer.com/lasexta/programas/al-rojo-vivo/abril-2018/cristina-cifuentes-dimite-y-denuncia-una-campana-de-acoso-la-tolerancia-cero-contra-la-corrupcion-tiene-un-precio_5ae06d1f7ed1a84af193644b/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.04.25
[debug] Python version 3.6.3 (CPython) - Linux-4.14.5-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4, rtmpdump 2.4
[debug] Proxy map: {}
[generic] cristina-cifuentes-dimite-y-denuncia-una-campana-de-acoso-la-tolerancia-cero-contra-la-corrupcion-tiene-un-precio_5ae06d1f7ed1a84af193644b: Requesting header
WARNING: Falling back on generic information extractor.
[generic] cristina-cifuentes-dimite-y-denuncia-una-campana-de-acoso-la-tolerancia-cero-contra-la-corrupcion-tiene-un-precio_5ae06d1f7ed1a84af193644b: Downloading webpage
[generic] cristina-cifuentes-dimite-y-denuncia-una-campana-de-acoso-la-tolerancia-cero-contra-la-corrupcion-tiene-un-precio_5ae06d1f7ed1a84af193644b: Extracting information
ERROR: Unsupported URL: https://www.atresplayer.com/lasexta/programas/al-rojo-vivo/abril-2018/cristina-cifuentes-dimite-y-denuncia-una-campana-de-acoso-la-tolerancia-cero-contra-la-corrupcion-tiene-un-precio_5ae06d1f7ed1a84af193644b/
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 789, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/generic.py", line 3182, in _real_extract
raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.atresplayer.com/lasexta/programas/al-rojo-vivo/abril-2018/cristina-cifuentes-dimite-y-denuncia-una-campana-de-acoso-la-tolerancia-cero-contra-la-corrupcion-tiene-un-precio_5ae06d1f7ed1a84af193644b/
Atresplayer is supported on Youtube-Dl. Example Url:
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:66
Top Results From Across the Web
My app errors when logging in and says "Something Went ...
My app errors when logging in and says "Something Went Wrong. Unsupported URL" ... You would receive this error if you are having...
Read more >youtube-dl: Supported sites
Here's is the list of all the supported sites, ordered alphabetically: 1tv: Первый канал; 20min; 220.ro; 23video; 247sports; 24video; 3qsdn: 3Q SDN; 3sat ......
Read more >Merge remote-tracking branch 'upstream/master' into master
[ ] I've checked that all URLs and arguments with special characters are properly quoted or escaped. - [ ] I've searched the...
Read more >[Help] Getting an 'Unsupported URL' error when opening ...
I'm going to say that you had chosen to open URLs in a third party browser with Browser Changer, and have uninstalled the...
Read more >Streamlink Version History - VideoHelp
Fixed: atresplayer, mitele and rtve plugins (#4759, #4760, #4766) ... BREAKING/setup: disabled unsupported Python versions, disabled the deprecated test ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In case it is of help, #16278 is a duplicate of this one.
UPDATE:
I just solved the problem I had. It is simply necessary to make a request to a url to obtain the happy cookie.
#################
I’m trying to fix the bug, but I’ve got stuck.
Indeed, as such @BlackHoleSpain says, now atresplayer forces you to authenticate with a free account to view the content.
The process to get the video urls is this:
Make a request to a url, for example: https://www.atresplayer.com/lasexta/programas/al-rojo-vivo/octubre-2019/11-10-19-raquel-ejerique-los-monjes-del-valle-de-los-caidos-reciben-340000-euros-anuales-del-estado-por-rezar-y-leer_5da06aa27ed1a8dfc5d00579/
In the source code of the page following the regular expression: r “window \ .__ PRELOADED_STATE__ = (. *?);” there is a json who has a “href” key with a url to the episode information. https://api.atresplayer.com/client/v1/page/episode/5da06aa27ed1a8dfc5d00579
Making a request to that url returns a json that has a “urlVideo” key with a url. https://api.atresplayer.com/client/v1/player/episode/5da06aa27ed1a8dfc5d00579
Make a request to this url. In the response are the links to download the episode with ffmpeg.
The problem: This last request requires to be authenticated. In particular it is necessary to make the request with the header:
Cookie: ATPSESSION=MTU3MTAwMjY0N3xB............iM9Ct6o (Large session id)
Here comes the strange thing: The login in principle seems to be a basic authorization that returns a cookie with a session id, but this cookie is not the same as we need to make the request. From what I understand, I think that just after logging in, it makes a weird non-standard oauth flow authentication by mixing oauth and session cookies that gives you the correct cookie (ATPSESSION).
So this is where I am stuck, I am not able to get ATPSESSION cookie.
I share it here. Surely we can fix this bug together.
Cito tambien a mi paisano @Nekmo