Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Adult Swim: Authenticated videos lack requires JSON #8640
Comments
|
This was just an assumption it may work with authenticated cookies. No one of the core developers has cable provider account. So you have to provide account credentials/valid cookies to one of the core developers to get this fixed (if it's possible at all). |
|
Will-do. Let me know where I should send the info. Alternatively, I may have time to add support myself, but not this week. |
|
ok i did a little messing around with capturing the streams from my iphone while useing the app http://apple-secure.cdn.turner.com/adultswim/big/secure/tve/2016-02/ASOE1002221600064421_HLS/ASOE1002221600064421_iphone_vod.m3u8?hdnea=expires%3D1457223852%7Eaccess%3D%2Fadultswim%2Fbig%2Fsecure%2Ftve%2F2016-02%2FASOE1002221600064421_HLS%2F*%7Emd5%3Dcb365b965ec2800fdc58c49502865d6f cmd output
so it looks like it needs the auth string appended to each file in the m3u8 to work here are the m3u8 files and the ts and key from the above cmd session the headers from when my iphone does it normally
im using Fiddler to capture my iphones traffic by the way |
This seems to be a failure of a test case that has been marked as "skipped" due to the authentication requirement. The error indicates that youtube-dl should still work with authentication.
Trying to run:
youtube-dl http://www.adultswim.com/videos/rick-and-morty/pilot/ --cookies cookies -F --user-agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36' --verbose --print-trafficHere's the relevant JSON from the page. Note that I'm logged in with my cable provider and actively streaming. I've tried refreshing the page; I don't get the authentication prompt again. youtube-dl expects either a
streamorclipsproperty, neither of which are present.{ "ott_expiration_date": "", "episode_number": "1", "blurb": "", "ott_launch_date": 1443039240, "type": "episode", "season_number": "1", "duration": 1325, "title": "Pilot", "cma_id": "1166637", "launch_date": 1455080400, "tv_rating": "tv-14-dlsv", "vma_id": "8a250ba14280caae01428fe0b3d80091", "views": 2061102, "description": "Rick moves in with his daughter's family and establishes himself as a bad influence on his grandson, Morty. ", "expiration_date": 1458100799, "images": [ { "height": "300", "name": "legacy", "width": "400", "url": "http://i.cdn.turner.com/asfix/repository//8a250ba13f865824013fc9db8b6b0400/thumbnail_8234390180613999969.jpg" }, { "height": "608", "name": "main", "width": "1080", "url": "http://i.cdn.turner.com/adultswim/big/video/episode-thumbs-16x9/rickandmorty_cc_001_pt2_v83js-02.jpg" } ], "slug": "pilot", "auth": true, "id": "rQxZvXQ4ROaSOqq-or2Mow", "version": 848339, "identifier": "EP 1", "contentType": "TVE", "videoPlaybackID": "1166637", "collectionSlug": "rick-and-morty", "linkURL": "/videos/rick-and-morty/pilot/", "fbCommentMetadata": { "associatedURL": "http://video.adultswim.com/rick-and-morty/pilot.html" } }Here's the output:
Here's the contents of
cookies:Note that I've edited the cookie file a bit because the generator I was using wasn't working all that well, but you can see above that all the cookies are being sent.