selsta / hlsdl

C program to download VoD HLS (.m3u8) files
MIT License
636 stars 158 forks source link

i dont know where to insert key file #76

Open cwondercheck opened 4 years ago

cwondercheck commented 4 years ago

C:\Users\Chenaniah>hlsdl -b -u "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" -h "Referer:https://plus.espn.com/en/video" -o "master-ts-desktop-silk-3bb01553-66fb-42f2-971f-5537514e9134-f7b9db2f-49a5-4296-a123-8b653770ed56.ts" "https://hlsvod-l3c-clt1.media.plus.espn.com/ps01/espn/hls/f806000f-2c7a-49de-9190-4f7b23f2f767/master-ts-desktop-silk-3bb01553-66fb-42f2-971f-5537514e9134-f7b9db2f-49a5-4296-a123-8b653770ed56.m3u8"

START media_playlist_get_links END media_playlist_get_links HLS Stream is AES-128 encrypted. File already exists. Overwrite? (y/n) y {"d_t":"vod"} {"t_d":5169,"d_d":0, "d_s":0} Downloading part 0 Error: Getting key-file [https://playback.svcs.plus.espn.com/silk/v1/obtain-license/00c49863-d491-4246-a27d-a07ff70561ed] failed http_code[401]. Error: AES128_CBC_DecryptUpdate failed: 0, in_size: 3000672, out_size: 3000656 {"t_d":5169,"d_d":5,"d_s":3000656} Downloading part 1 Error: Getting key-file [https://playback.svcs.plus.espn.com/silk/v1/obtain-license/00c49863-d491-4246-a27d-a07ff70561ed] failed http_code[401]. Error: AES128_CBC_DecryptUpdate failed: 0, in_size: 5503328, out_size: 5503312 {"t_d":5169,"d_d":10,"d_s":8503968} Downloading part 2 Error: Getting key-file [https://playback.svcs.plus.espn.com/silk/v1/obtain-license/00c49863-d491-4246-a27d-a07ff70561ed] failed http_code[401]. Error: AES128_CBC_DecryptUpdate failed: 0, in_size: 3865296, out_size: 3865280 {"t_d":5169,"d_d":15,"d_s":12369248}

Jayapraveen commented 4 years ago

The http code 401 while getting the key file states that you are unauthorized to perform the key request operation. It could be that the key file requires some authorization header or cookies to be sent.

cwondercheck commented 4 years ago

Ok how would you go about doing that