tarkah / lazystream

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

400 Client Error: Bad request for url #99

Open cjohnson12 opened 2 years ago

cjohnson12 commented 2 years ago

Hi @tarkah

My /etc/hosts are correct and everything should be working as expected, but I'm getting HTTP 400 client error on mf.svc.nhl.com. I've restarted my mac os x machine but same error.

Hope you can help.

etc/hosts: 13.224.237.6 mf.svc.nhl.com 52.84.90.52 playback.svcs.mlb.com 62.253.72.42 hlslive-akc.med2.med.nhl.com

lazystream --date 20220101 play select

| \ /\ \ / | | \ | \ \ | | \ / \ /_ \ | | | | \ |\/ | | _ \ / | | | _ < | \ | | |/ ____| | ____/ | | _\|/ _| _|

Pick a game for 2022-01-01...

1) 6:00 PM - Buffalo Sabres @ Boston Bruins 2) 6:00 PM - Carolina Hurricanes @ Columbus Blue Jackets 3) 6:00 PM - Montréal Canadiens @ Florida Panthers 4) 7:00 PM - Chicago Blackhawks @ Nashville Predators 5) 7:00 PM - Edmonton Oilers @ New York Islanders 6) 12:00 AM - Ottawa Senators @ Toronto Maple Leafs 7) 12:00 AM - St. Louis Blues @ Minnesota Wild 8) 3:00 AM - Vancouver Canucks @ Seattle Kraken 9) 3:30 AM - Philadelphia Flyers @ Los Angeles Kings

7

Pick a stream...

1) NATIONAL 2) FRENCH

1

Passing game to player...

============================

[cli][info] Found matching plugin hls for URL hlsvariant://https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1641174003~acl=/*~id=nhlGatewayId:7379308~data=2026745871~hmac=9f3f151e7aa43486765c467b24f55b5b0ce9b8592105711152a3b78ebe331236/99c7578338641f445340de06dc0299e2/va01/nhl/2022/01/02/NHL_GAME_VIDEO_STLMIN_M2_NATIONAL_20220102_1638210572341/master_wired60.m3u8 name_key=bitrate [cli][info] Available streams: 670k (worst), 1000k, 1400k, 2100k, 2900k, 4100k, 6600k (best) [cli][info] Opening stream: 6600k (hls) [stream.hls][error] Failed to create decryptor: Unable to open URL: https://mf.svc.nhl.com/ws/media/mf/v2.3/key/silk/mediaid/2026745871/kid/70448504 (400 Client Error: Bad Request for url: https://mf.svc.nhl.com/ws/media/mf/v2.3/key/silk/mediaid/2026745871/kid/70448504) [cli][error] Try 1/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1641174003~acl=/*~id=nhlGatewayId:7379308~data=2026745871~hmac=9f3f151e7aa43486765c467b24f55b5b0ce9b8592105711152a3b78ebe331236/99c7578338641f445340de06dc0299e2/va01/nhl/2022/01/02/NHL_GAME_VIDEO_STLMIN_M2_NATIONAL_20220102_1638210572341/5600K/5600_complete-trimmed.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1641174003~acl=/*~id=nhlGatewayId:7379308~data=2026745871~hmac=9f3f151e7aa43486765c467b24f55b5b0ce9b8592105711152a3b78ebe331236/99c7578338641f445340de06dc0299e2/va01/nhl/2022/01/02/NHL_GAME_VIDEO_STLMIN_M2_NATIONAL_20220102_1638210572341/master_wired60.m3u8')> (No data returned from stream) [stream.hls][error] Failed to create decryptor: Unable to open URL: https://mf.svc.nhl.com/ws/media/mf/v2.3/key/silk/mediaid/2026745871/kid/70448504 (400 Client Error: Bad Request for url: https://mf.svc.nhl.com/ws/media/mf/v2.3/key/silk/mediaid/2026745871/kid/70448504) [cli][error] Try 2/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1641174003~acl=/*~id=nhlGatewayId:7379308~data=2026745871~hmac=9f3f151e7aa43486765c467b24f55b5b0ce9b8592105711152a3b78ebe331236/99c7578338641f445340de06dc0299e2/va01/nhl/2022/01/02/NHL_GAME_VIDEO_STLMIN_M2_NATIONAL_20220102_1638210572341/5600K/5600_complete-trimmed.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1641174003~acl=/*~id=nhlGatewayId:7379308~data=2026745871~hmac=9f3f151e7aa43486765c467b24f55b5b0ce9b8592105711152a3b78ebe331236/99c7578338641f445340de06dc0299e2/va01/nhl/2022/01/02/NHL_GAME_VIDEO_STLMIN_M2_NATIONAL_20220102_1638210572341/master_wired60.m3u8')> (No data returned from stream) [stream.hls][error] Failed to create decryptor: Unable to open URL: https://mf.svc.nhl.com/ws/media/mf/v2.3/key/silk/mediaid/2026745871/kid/70448504 (400 Client Error: Bad Request for url: https://mf.svc.nhl.com/ws/media/mf/v2.3/key/silk/mediaid/2026745871/kid/70448504) [cli][error] Try 3/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1641174003~acl=/*~id=nhlGatewayId:7379308~data=2026745871~hmac=9f3f151e7aa43486765c467b24f55b5b0ce9b8592105711152a3b78ebe331236/99c7578338641f445340de06dc0299e2/va01/nhl/2022/01/02/NHL_GAME_VIDEO_STLMIN_M2_NATIONAL_20220102_1638210572341/5600K/5600_complete-trimmed.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1641174003~acl=/*~id=nhlGatewayId:7379308~data=2026745871~hmac=9f3f151e7aa43486765c467b24f55b5b0ce9b8592105711152a3b78ebe331236/99c7578338641f445340de06dc0299e2/va01/nhl/2022/01/02/NHL_GAME_VIDEO_STLMIN_M2_NATIONAL_20220102_1638210572341/master_wired60.m3u8')> (No data returned from stream) error: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1641174003~acl=/*~id=nhlGatewayId:7379308~data=2026745871~hmac=9f3f151e7aa43486765c467b24f55b5b0ce9b8592105711152a3b78ebe331236/99c7578338641f445340de06dc0299e2/va01/nhl/2022/01/02/NHL_GAME_VIDEO_STLMIN_M2_NATIONAL_20220102_1638210572341/5600K/5600_complete-trimmed.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1641174003~acl=/*~id=nhlGatewayId:7379308~data=2026745871~hmac=9f3f151e7aa43486765c467b24f55b5b0ce9b8592105711152a3b78ebe331236/99c7578338641f445340de06dc0299e2/va01/nhl/2022/01/02/NHL_GAME_VIDEO_STLMIN_M2_NATIONAL_20220102_1638210572341/master_wired60.m3u8')>, tried 3 times, exiting [cli][info] Closing currently open stream...

ERROR: StreamLink failed

tarkah commented 2 years ago

Make sure all three entries in your hosts file have the same IP address as the one you get if you ping freesports.ddns.net

neo-neo1 commented 2 years ago

Do as tarkah said. Plus remove the hlslive-akc.med2.med.nhl.com line. You do NOT need to redirect it. If you do, it won't work.

engkazim2000 commented 2 years ago

Hello,

looks like NHL url are not working from last few days is there any changes in host or anything also today i am trying to get the mlb urls and its also not working

ovcrash commented 1 year ago

mlb and nhl don't work, even if the ip in the host file match the one from free sports. Is all this still working ?