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

[CartoonNetwork] "CN Unlocked" 403 error #11373

Closed
JamesTheAwesomeDude opened this issue Dec 5, 2016 · 6 comments
Closed

[CartoonNetwork] "CN Unlocked" 403 error #11373

JamesTheAwesomeDude opened this issue Dec 5, 2016 · 6 comments

Comments

@JamesTheAwesomeDude
Copy link

@JamesTheAwesomeDude JamesTheAwesomeDude commented Dec 5, 2016

Basics:

  • I've verified and I assure that I'm running youtube-dl 2016.12.01 / 875ddd7
  • Read the README and 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 -v output:

$ youtube-dl -v                                                                                 
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.01
[debug] Python version 3.5.2 - Linux-4.4.0-43-generic-x86_64-with-LinuxMint-18-sarah
[debug] exe versions: ffmpeg 3.2.1-1, ffprobe 3.2.1-1
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
$ 

Description of your issue, suggested solution and other information

Downloading videos from Cartoon Network's "Unlocked!" | "UNLOCKED FULL EPISODES - NO LOG IN REQUIRED!" section fails.

Log of the error (NOTE that this URL may not be valid tomorrow; if so, please get a different episode link from here.):

$ youtube-dl -v http://www.cartoonnetwork.com/video/unlocked/monster-buddies-episode.html       
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.cartoonnetwork.com/video/unlocked/monster-buddies-episode.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.01
[debug] Python version 3.5.2 - Linux-4.4.0-43-generic-x86_64-with-LinuxMint-18-sarah
[debug] exe versions: ffmpeg 3.2.1-1, ffprobe 3.2.1-1
[debug] Proxy map: {}
[CartoonNetwork] monster-buddies: Downloading webpage
[CartoonNetwork] 823828: Downloading XML
[CartoonNetwork] 823828: Downloading XML
[CartoonNetwork] 823828: Downloading m3u8 information
[CartoonNetwork] 823828: Downloading m3u8 information
[debug] Invoking downloader on 'http://androidhls-secure.cdn.turner.com/toon/big/secure/tve/2016-11/CARE1010181600015349_HLS/CARE1010181600015349_Layer6_vod.m3u8'
[download] Destination: SU 22-823828.mp4
[debug] ffmpeg command line: ffmpeg -y -headers 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
Cookie: hdnea2=expires=1481054591~access=/toon/big/secure/tve/2016-11/CARE1010181600015349_HLS/*~md5=0ffee088289f99c0962bfc3d90da64c4
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
' -i http://androidhls-secure.cdn.turner.com/toon/big/secure/tve/2016-11/CARE1010181600015349_HLS/CARE1010181600015349_Layer6_vod.m3u8 -c copy -f mp4 -bsf:a aac_adtstoasc 'file:SU 22-823828.mp4.part'
ffmpeg version 3.2.1-1~ubuntu16.04.1york1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.1 (Ubuntu 5.4.1-3ubuntu1~ubuntu16.04.1york0) 20161019
  configuration: --prefix=/usr --extra-version='1~ubuntu16.04.1york1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-libtesseract --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-libopencv --enable-frei0r --enable-libx264 --enable-chromaprint --enable-shared
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[http @ 0x55f9ae357020] HTTP error 403 Forbidden
http://androidhls-secure.cdn.turner.com/toon/big/secure/tve/2016-11/CARE1010181600015349_HLS/CARE1010181600015349_Layer6_vod.m3u8: Server returned 403 Forbidden (access denied)


ERROR: ffmpeg exited with code 1
  File "/home/james/.local/bin/youtube-dl", line 6, in <module>
    youtube_dl.main()
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/__init__.py", line 444, in main
    _real_main(argv)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/__init__.py", line 434, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1791, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 705, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 751, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1435, in process_video_result
    self.process_info(new_info)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1699, in process_info
    success = dl(filename, info_dict)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1641, in dl
    return fd.download(name, info)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/downloader/common.py", line 353, in download
    return self.real_download(filename, info_dict)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/downloader/external.py", line 43, in real_download
    self.get_basename(), retval))
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/downloader/common.py", line 162, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 568, in report_error
    self.trouble(error_message, tb)
  File "/home/james/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 530, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

$ 
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 5, 2016

Can you watch it in browser in the first place?

@JamesTheAwesomeDude
Copy link
Author

@JamesTheAwesomeDude JamesTheAwesomeDude commented Dec 5, 2016

@dstftw Yes, I am a resident of the U.S. (the only/main country likely to be supported by this section of the website, if any geo-restrictions are in place), and a Windows rig I have running on this IP is capable of successfully streaming the videos in-browser.

@JamesTheAwesomeDude
Copy link
Author

@JamesTheAwesomeDude JamesTheAwesomeDude commented Dec 5, 2016

ALSO, just as a sanity check, I tried downloading and running YouTube-DL with that URL on the Windows rig, and (after acquiring an FFMPEG executable) received the exact same error (403, emitted by ffmpeg).

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 6, 2016

it works only using hls native downloader.
try to install pycrypto and add --hls-prefer-native to the command.

@JamesTheAwesomeDude
Copy link
Author

@JamesTheAwesomeDude JamesTheAwesomeDude commented Dec 6, 2016

@remitamine YES! Installing pycrypto and adding the flag --hls-prefer-native fixed it.

I'm hesitant to close this immediately, though—perhaps some information ought to be added to the wiki or even the debugging output on the necessity of this library for certain websites?

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 6, 2016

for turner network websites it might be possible to make it work using ffmpeg.

@remitamine remitamine closed this in 36fce54 Feb 4, 2017
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.