tarkah / lazystream

Easily get LazyMan stream links, output directly or to m3u / xmltv formats. Streams can also be recorded or casted.
106 stars 16 forks source link

ERROR: StreamLink failed - error: Could not open stream #52

Closed fedorajoe closed 3 years ago

fedorajoe commented 3 years ago

[stream.hls][error] Failed to create decryptor: Unable to open URL: https://mf.svc.nhl.com/ws/media/mf/v2.3/key/silk/mediaid/2013031911/kid/70335172 (HTTPSConnectionPool(host='mf.svc.nhl.com', port=443): Max retries exceeded with url: /ws/media/mf/v2.3/key/silk/mediaid/2013031911/kid/70335172 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4534be8b20>: Failed to establish a new connection: [Errno 111] Connection refused'))) [cli][error] Try 3/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610670035~acl=/*~id=nhlGatewayId:2807936~data=2013031911~hmac=bb37bb85c7c3d1aaa22444eaa3dc186b0af7c6471c0bf563edf4cf2d7068fc76/9ff2e9060f750014e4b9f86e4902d88b/ls03/nhl/2021/01/14/NHL_GAME_VIDEO_MTLTOR_M2_NATIONAL_20210114_1610207154355/5600K/5600_complete.m3u8')> (No data returned from stream) error: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610670035~acl=/*~id=nhlGatewayId:2807936~data=2013031911~hmac=bb37bb85c7c3d1aaa22444eaa3dc186b0af7c6471c0bf563edf4cf2d7068fc76/9ff2e9060f750014e4b9f86e4902d88b/ls03/nhl/2021/01/14/NHL_GAME_VIDEO_MTLTOR_M2_NATIONAL_20210114_1610207154355/5600K/5600_complete.m3u8')>, tried 3 times, exiting [cli][info] Closing currently open stream...

ERROR: StreamLink failed

tarkah commented 3 years ago

Have you made the required DNS hosts file changes?

fedorajoe commented 3 years ago

I have my hosts file with the lazyman entries, are they different for lazystream?

178.62.203.238 mf.svc.nhl.com 178.62.203.238 playback.svcs.mlb.com null mf.svc.nhl.com

fedorajoe commented 3 years ago

AHHHHH, I found the correct entries and all is good now! Thank you much for your efforts on this project.

tarkah commented 3 years ago

Great! Glad you got it fixed.

fedorajoe commented 3 years ago

Not as much as I am! Hockey started and I forgot to backup my lazyman installers and put a fresh Fedora 33 install on a couple months back. I was so excited when I found your GIT, but of course I couldn't really test it when I found it a couple months ago, not until we had live games again because it was too late to try last years playoff games. And I must have had an old backup of my hosts file, because those IP's I had were wrong, everything fired up flawlessly after I added the correct ones. :P

One question, how hard would it be to add switches/sub commands to choose which stream when using play/record team ? Many fans in Toronto don't like our announcers and watch the other teams feed, not our own.

Again, thanks for putting this together, I appreciate the time you spend!

Cheers Joe.

On Thu, Jan 14, 2021 at 11:14 AM Cory Forsstrom notifications@github.com wrote:

Great! Glad you got it fixed.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/tarkah/lazystream/issues/52#issuecomment-760298609, or unsubscribe https://github.com/notifications/unsubscribe-auth/APH2MYZL26NLVZZPUCMDTZLSZ4J6LANCNFSM4WBUMGUQ .

--

(°v°) (/(_)) Joe Shedler Linux Engineer, ww jshedler@gmail.com

tarkah commented 3 years ago

It's already there :) you can pass --feed-type after the play or record subcommand. For example, if I pass a wrong feed type:

❯ lazystream play team VGK --feed-type ASSDF
error: 'ASSDF' isn't a valid value for '--feed-type <feed-type>'
    [possible values: AWAY, COMPOSITE, FRENCH, HOME, NATIONAL]
fedorajoe commented 3 years ago

very nice, thank you for that, I didn't notice in the help. :)

On Thu, Jan 14, 2021 at 2:43 PM Cory Forsstrom notifications@github.com wrote:

It's already there :) you can pass --feed-type after the play or record subcommand. For example, if I pass a wrong feed type:

❯ lazystream play team VGK --feed-type ASSDF

error: 'ASSDF' isn't a valid value for '--feed-type '

[possible values: AWAY, COMPOSITE, FRENCH, HOME, NATIONAL]

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/tarkah/lazystream/issues/52#issuecomment-760433194, or unsubscribe https://github.com/notifications/unsubscribe-auth/APH2MY2JKAGFDQAXCRNBWADSZ5CNLANCNFSM4WBUMGUQ .

--

(°v°) (/(_)) Joe Shedler Linux Engineer, ww jshedler@gmail.com

fedorajoe commented 3 years ago

hmmm does replying to this addy still work? Hello Cory, so sorry to bother you like this, I was unable to find a forum/discord and Im not great with GIT not sure if there is a way to communicate other than entering a bug.... So I thought I wold try this old email chain.

previously when I was using lazyman and I missed a game, there was a place to request it to be available again after the 24hrs grace period. Do we have something similar?

If not, I fully understand, you snooze you loose. If we do, I would greatly appreciate a second chance at the Leafs Flames from Jan 26th

lazystream]$ ./lazystream record team TOR /home/joes/4t_data/Leafs --date 20210126 Found matching team for TOR Game found for today Using stream feed NATIONAL Recording with StreamLink... ============================ [cli][info] Found matching plugin hls for URL hlsvariant:// https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611838078~acl=/*~id=nhlGatewayId:1239075~data=2013424481~hmac=827327b875ad6e43d47ec2b2df29c79319a9a437f3852b26c33d8cb2826d3b87/16d7d28c6fe530bd9602b3fb67e262a1/ls03/nhl/2021/01/27/NHL_GAME_VIDEO_TORCGY_M2_NATIONAL_20210127_1610486963846/master_wired60.m3u8 name_key=bitrate [cli][error] Unable to open URL: https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611838078~acl=/*~id=nhlGatewayId:1239075~data=2013424481~hmac=827327b875ad6e43d47ec2b2df29c79319a9a437f3852b26c33d8cb2826d3b87/16d7d28c6fe530bd9602b3fb67e262a1/ls03/nhl/2021/01/27/NHL_GAME_VIDEO_TORCGY_M2_NATIONAL_20210127_1610486963846/master_wired60.m3u8 (403 Client Error: Forbidden for url: https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611838078~acl=/*~id=nhlGatewayId:1239075~data=2013424481~hmac=827327b875ad6e43d47ec2b2df29c79319a9a437f3852b26c33d8cb2826d3b87/16d7d28c6fe530bd9602b3fb67e262a1/ls03/nhl/2021/01/27/NHL_GAME_VIDEO_TORCGY_M2_NATIONAL_20210127_1610486963846/master_wired60.m3u8 ) [cli][info] Waiting for streams, retrying every 1.0 second(s) Thanks either way, what you do is very appreciated. On Thu, Jan 14, 2021 at 2:43 PM Cory Forsstrom wrote: > It's already there :) you can pass --feed-type after the play or record > subcommand. For example, if I pass a wrong feed type: > > ❯ lazystream play team VGK --feed-type ASSDF > > error: 'ASSDF' isn't a valid value for '--feed-type ' > > [possible values: AWAY, COMPOSITE, FRENCH, HOME, NATIONAL] > > > — > You are receiving this because you modified the open/close state. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > -- (°v°) (/(_)\) Joe Shedler Linux Engineer, ww jshedler@gmail.com
tarkah commented 3 years ago

Yeah it seems like the link to that game is no longer good. It sometimes takes a while, but eventually a VOD link will replace it and it should be available again. No idea on how long that can take though.

fedorajoe commented 3 years ago

sweet, I'll just script a check and add it to daily cron. I missed the game once, lets see if I can remove human error on the VOD check :P

Do you have a Patreon or some other donation links? The software is amazing and works very well, being a CLI tool I have so much more flexibility than the java front end of lazyman, then the support you've offered me without hesitation, and you always made me feel like this is cool to do, really TRY NOT to abuse it!!! The fact that I can reach out to you is something so far and beyond what I even expected.

I always say it, thanks for your efforts and remember you ROCK!

On Fri, Feb 5, 2021 at 1:23 AM Cory Forsstrom notifications@github.com wrote:

Yeah it seems like the link to that game is no longer good. It sometimes takes a while, but eventually a VOD link will replace it and it should be available again. No idea on how long that can take though.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/tarkah/lazystream/issues/52#issuecomment-773821123, or unsubscribe https://github.com/notifications/unsubscribe-auth/APH2MY6VZJBR7MM3RWWEUYTS5OFGJANCNFSM4WBUMGUQ .

--

(°v°) (/(_)) Joe Shedler Linux Engineer, ww jshedler@gmail.com