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

Getting Failed error #10

Open
pr3tty8oyfl0yd opened this issue Jan 11, 2019 · 4 comments
Open

Getting Failed error #10

pr3tty8oyfl0yd opened this issue Jan 11, 2019 · 4 comments

Comments

@pr3tty8oyfl0yd
Copy link

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
Copy link

lunatix66 commented Mar 8, 2019

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
Copy link
Owner

caseyfw commented Mar 9, 2019

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
Copy link
Owner

caseyfw commented Mar 9, 2019

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants