question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:66

github_iconTop GitHub Comments

2reactions
vitaminace33commented, Apr 25, 2018

In case it is of help, #16278 is a duplicate of this one.

1reaction
josergdevcommented, Oct 15, 2019

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:

  1. 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/

  2. 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

  3. 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

  4. Make a request to this url. In the response are the links to download the episode with ffmpeg.

    "sources": [
        {
            "src": "https://nogeovod-fy.atresmedia.com/vsg/_definst_/assets9/2019/10/11/699D3510-B86D-4704-821D-6A05F1559514/es.smil/playlist.m3u8?pulse=assets9%2F2019%2F10%2F11%2F699D3510-B86D-4704-821D-6A05F1559514%2F%7C1571022000%7C923223c967ef5b75b27b9366e7c57509 ",
            "type": "application/vnd.apple.mpegurl"
        },
        {
            "src": "https://voddash-fy.atresmedia.com/vsgdash/_definst_/assets9/2019/10/11/699D3510-B86D-4704-821D-6A05F1559514/en.smil/manifest_mvlist.mpd",
            "type": "application/dash+xml"
        }
    ],

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found