ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.46k stars 10.04k forks source link

[CartoonNetwork] hlsnative stopped working #23258

Closed matthewglane closed 4 years ago

matthewglane commented 4 years ago

The problem I'm having is similar to #22386, but this time with Cartoon Network. Just like the issue mentioned, I have/am:

Command Used


youtube-dl --verbose --ap-mso "Charter_Direct" --ap-username "PRIVATE" --ap-password "PRIVATE" --write-info-json --hls-prefer-native -o "output.mp4" "https://www.cartoonnetwork.com/video/mao-mao/fright-wig-episode.html"

Command Output


[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'--ap-mso', u'Charter_Direct', u'--ap-username', u'PRIVATE', u'--ap-password', u'PRIVATE', u'--write-info-json', u'--hls-prefer-native', u'-o', u'output.mp4', u'https://www.cartoonnetwork.com/video/mao-mao/fright-wig-episode.html']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.11.28
[debug] Python version 2.7.16 (CPython) - Linux-5.0.0-36-generic-x86_64-with-Ubuntu-19.04-disco
[debug] exe versions: ffmpeg 4.1.3, ffprobe 4.1.3
[debug] Proxy map: {}
[CartoonNetwork] fright-wig: Downloading webpage
[CartoonNetwork] 72731b1c01ad4905e841ca55c10ba9ad1bd27534: Downloading JSON metadata
[CartoonNetwork] 72731b1c01ad4905e841ca55c10ba9ad1bd27534: Retrieving Media Token
[CartoonNetwork] 72731b1c01ad4905e841ca55c10ba9ad1bd27534: Downloading XML
[CartoonNetwork] 72731b1c01ad4905e841ca55c10ba9ad1bd27534: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video description metadata as JSON to: output.info.json
[debug] Invoking downloader on u'https://tve.cdn.turner.com/toon/22a0213dcb622d8ae9bd0d13b8f753a3/layer7/layer7_bk.m3u8?hdntl=exp=1575004124~acl=%2ftoon%2f22a0213dcb622d8ae9bd0d13b8f753a3%2f*~hmac=8246420a72b1237287d7f875a7ff8af502a5de952ce64535a1fbc32ad0e1f0ba'
[hlsnative] Downloading m3u8 manifest
WARNING: hlsnative has detected features it does not support, extraction will be delegated to ffmpeg
[download] Destination: output.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'Accept-Language: en-us,en;q=0.5
...proceeds to download with ffmpeg...

The highlight here is WARNING: hlsnative has detected features it does not support, extraction will be delegated to ffmpeg. Cartoon Network must have changed something on their side that broke hlsnative. The issue started while using version 2019.11.22 and has persisted into version 2019.11.28.

remitamine commented 4 years ago

install PyCrypto or PyCryptodome.