caseyfw / nhldl

A shell script for downloading NHL.tv streams.
MIT License
23 stars 4 forks source link

Getting Failed error #10

Open pr3tty8oyfl0yd opened 5 years ago

pr3tty8oyfl0yd commented 5 years ago

I have the cookies file in the same directory as I am running the script. I run it and I get:

Fetching master m3u8 file: http://md-akc.med.nhl.com/hls/nhl/2019/01/11/676675c3-888c-4fd3-a599-6ce635c5660d/1547172284723/master_wired.m3u8 Done. Fetching 3500K stream m3u8 file: http://md-akc.med.nhl.com/hls/nhl/2019/01/11/676675c3-888c-4fd3-a599-6ce635c5660d/1547172284723/ Failed

Is there a log file somewhere I could look at to see why I am getting the error?

lunatix66 commented 5 years ago

Hi, I have kind of the same issue but the "failed" message arrives even sooner in my case.

Is this script working for anyone? I could use some help :). I feel like it is coming from the new m3U8 URL format but I am far from a developer...

caseyfw commented 5 years ago

Sorry, only just noticed this. I can't reproduce the issue - it works fine for me.

To get full script output, but a # in front of the VERBOSITY variable at the start of the script, like this:

Screen Shot 2019-03-09 at 1 18 29 pm

Here's everything I do to get a game to download:

  1. Go to nhl.tv in Chrome and pick a game to watch. Before it starts playing, I open the web inspector, open the network tab and put m3u8 in the filter field, like this:
m3u8 in network filter
  1. Then I click on the master m3u8 file once it appears in the list, and copy the request url for later:
copy master m3u8 url
  1. I use a Chrome plugin called cookies.txt which shows the cookies for the site you're on in curl cookie jar format. I click the cookies.txt icon in the top right corner of Chrome and copy the Authorization and mediaAuth_v2 cookie lines, like this:
Screen Shot 2019-03-09 at 1 26 52 pm
  1. Then I paste them into a file called cookies.txt in the same directory as the nhldl.sh script:
Screen Shot 2019-03-09 at 1 31 58 pm
  1. Now I can run the script, making sure to quote the master m3u8 url if it has any weird characters:
Screen Shot 2019-03-09 at 1 35 05 pm
  1. With my horrible internet, it takes forever, but at the end of it you get a complete, ad-free stream video.
caseyfw commented 5 years ago

I would however suggest checking out these other significantly more user friendly projects for downloading NHL streams:

All are better solutions than the janky script I wrote years ago :D

lunatix66 commented 5 years ago

Thank you very much for your kind answer. I seem to do everything allright but unfortunately it does not work. But thanks for the other scripts, I tried nhltv geeky streams and it works! Thanks again