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

Failed to crreate decyptor: Unable to open URL #54

Closed mritzman-dg closed 3 years ago

mritzman-dg commented 3 years ago

Unable to play any streams.

$ ./lazystream play team COL
Found matching team for COL
Game found for today
Using stream feed HOME

Passing game to player...

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

[cli][info] Found matching plugin hls for URL hlsvariant://https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610852405~acl=/*~id=nhlGatewayId:1239075~data=2013044171~hmac=352f1f71accf23f67223ffca2eb2f584eced7379c5f3bbf7e8451cb7c98cd98f/3334990fe4fb77c0d0812593155cf529/ls03/nhl/2021/01/16/NHL_GAME_VIDEO_STLCOL_M2_HOME_20210116_1610212683078/master_wired60.m3u8 name_key=bitrate
[cli][info] Available streams: 670k (worst), 1000k, 1450k, 2140k, 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/2013044171/kid/70335957 (HTTPSConnectionPool(host='mf.svc.nhl.com', port=443): Max retries exceeded with url: /ws/media/mf/v2.3/key/silk/mediaid/2013044171/kid/70335957 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10fe35340>: Failed to establish a new connection: [Errno 61] Connection refused')))
[cli][error] Try 1/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610852405~acl=/*~id=nhlGatewayId:1239075~data=2013044171~hmac=352f1f71accf23f67223ffca2eb2f584eced7379c5f3bbf7e8451cb7c98cd98f/3334990fe4fb77c0d0812593155cf529/ls03/nhl/2021/01/16/NHL_GAME_VIDEO_STLCOL_M2_HOME_20210116_1610212683078/5600K/5600_complete.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610852405~acl=/*~id=nhlGatewayId:1239075~data=2013044171~hmac=352f1f71accf23f67223ffca2eb2f584eced7379c5f3bbf7e8451cb7c98cd98f/3334990fe4fb77c0d0812593155cf529/ls03/nhl/2021/01/16/NHL_GAME_VIDEO_STLCOL_M2_HOME_20210116_1610212683078/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/2013044171/kid/70335957 (HTTPSConnectionPool(host='mf.svc.nhl.com', port=443): Max retries exceeded with url: /ws/media/mf/v2.3/key/silk/mediaid/2013044171/kid/70335957 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10fe3dbb0>: Failed to establish a new connection: [Errno 61] Connection refused')))
[cli][error] Try 2/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610852405~acl=/*~id=nhlGatewayId:1239075~data=2013044171~hmac=352f1f71accf23f67223ffca2eb2f584eced7379c5f3bbf7e8451cb7c98cd98f/3334990fe4fb77c0d0812593155cf529/ls03/nhl/2021/01/16/NHL_GAME_VIDEO_STLCOL_M2_HOME_20210116_1610212683078/5600K/5600_complete.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610852405~acl=/*~id=nhlGatewayId:1239075~data=2013044171~hmac=352f1f71accf23f67223ffca2eb2f584eced7379c5f3bbf7e8451cb7c98cd98f/3334990fe4fb77c0d0812593155cf529/ls03/nhl/2021/01/16/NHL_GAME_VIDEO_STLCOL_M2_HOME_20210116_1610212683078/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/2013044171/kid/70335957 (HTTPSConnectionPool(host='mf.svc.nhl.com', port=443): Max retries exceeded with url: /ws/media/mf/v2.3/key/silk/mediaid/2013044171/kid/70335957 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10fe35580>: Failed to establish a new connection: [Errno 61] Connection refused')))
[cli][error] Try 3/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610852405~acl=/*~id=nhlGatewayId:1239075~data=2013044171~hmac=352f1f71accf23f67223ffca2eb2f584eced7379c5f3bbf7e8451cb7c98cd98f/3334990fe4fb77c0d0812593155cf529/ls03/nhl/2021/01/16/NHL_GAME_VIDEO_STLCOL_M2_HOME_20210116_1610212683078/5600K/5600_complete.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610852405~acl=/*~id=nhlGatewayId:1239075~data=2013044171~hmac=352f1f71accf23f67223ffca2eb2f584eced7379c5f3bbf7e8451cb7c98cd98f/3334990fe4fb77c0d0812593155cf529/ls03/nhl/2021/01/16/NHL_GAME_VIDEO_STLCOL_M2_HOME_20210116_1610212683078/master_wired60.m3u8')> (No data returned from stream)
error: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610852405~acl=/*~id=nhlGatewayId:1239075~data=2013044171~hmac=352f1f71accf23f67223ffca2eb2f584eced7379c5f3bbf7e8451cb7c98cd98f/3334990fe4fb77c0d0812593155cf529/ls03/nhl/2021/01/16/NHL_GAME_VIDEO_STLCOL_M2_HOME_20210116_1610212683078/5600K/5600_complete.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1610852405~acl=/*~id=nhlGatewayId:1239075~data=2013044171~hmac=352f1f71accf23f67223ffca2eb2f584eced7379c5f3bbf7e8451cb7c98cd98f/3334990fe4fb77c0d0812593155cf529/ls03/nhl/2021/01/16/NHL_GAME_VIDEO_STLCOL_M2_HOME_20210116_1610212683078/master_wired60.m3u8')>, tried 3 times, exiting
[cli][info] Closing currently open stream...

ERROR: StreamLink failed 
tarkah commented 3 years ago

Have you updated your hosts file with the appropriate dns entries?

mritzman-dg commented 3 years ago

Hi, can you send the appropriate dns entries? I found some entries in another thread but those didn't seem to be correct.

tarkah commented 3 years ago

Here are the following hosts you need to update IP for. You can get the correct IP by ping freegamez.ga

mf.svc.nhl.com
playback.svcs.mlb.com
mlb-ws-mf.media.mlb.com
mritzman-dg commented 3 years ago

Thanks for your feedback @tarkah but I'm still getting the same error. Below is what I added to my /etc/hosts file:

165.22.201.101 freegamez.ga
178.62.203.238 mf.svc.nhl.com
178.62.203.238 playback.svcs.mlb.com

Pinging mlb-ws-mf.media.mlb.com could not be resolved.

Here is the output I get:


~/Downloads/lazystream $ ./lazystream play team COL
Found matching team for COL
Game found for today
Using stream feed AWAY

Passing game to player...

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

[cli][info] Found matching plugin hls for URL hlsvariant://https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611374456~acl=/*~id=nhlGatewayId:4934646~data=2013293711~hmac=f2f5591428e6b934f1351b496914e6fee3589fdf4cd76ba4f1af5bb44be8e944/38a2c756f556e8e795265e5e3ae1a4f4/ls03/nhl/2021/01/22/NHL_GAME_VIDEO_COLLAK_M2_VISIT_20210122_1610402487359/master_wired60.m3u8 name_key=bitrate
[cli][info] Available streams: 670k (worst), 1000k, 1450k, 2140k, 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/2013293711/kid/70339506 (HTTPSConnectionPool(host='mf.svc.nhl.com', port=443): Max retries exceeded with url: /ws/media/mf/v2.3/key/silk/mediaid/2013293711/kid/70339506 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x11097d370>: Failed to establish a new connection: [Errno 61] Connection refused')))
[cli][error] Try 1/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611374456~acl=/*~id=nhlGatewayId:4934646~data=2013293711~hmac=f2f5591428e6b934f1351b496914e6fee3589fdf4cd76ba4f1af5bb44be8e944/38a2c756f556e8e795265e5e3ae1a4f4/ls03/nhl/2021/01/22/NHL_GAME_VIDEO_COLLAK_M2_VISIT_20210122_1610402487359/5600K/5600_complete.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611374456~acl=/*~id=nhlGatewayId:4934646~data=2013293711~hmac=f2f5591428e6b934f1351b496914e6fee3589fdf4cd76ba4f1af5bb44be8e944/38a2c756f556e8e795265e5e3ae1a4f4/ls03/nhl/2021/01/22/NHL_GAME_VIDEO_COLLAK_M2_VISIT_20210122_1610402487359/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/2013293711/kid/70339506 (HTTPSConnectionPool(host='mf.svc.nhl.com', port=443): Max retries exceeded with url: /ws/media/mf/v2.3/key/silk/mediaid/2013293711/kid/70339506 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x110a70be0>: Failed to establish a new connection: [Errno 61] Connection refused')))
[cli][error] Try 2/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611374456~acl=/*~id=nhlGatewayId:4934646~data=2013293711~hmac=f2f5591428e6b934f1351b496914e6fee3589fdf4cd76ba4f1af5bb44be8e944/38a2c756f556e8e795265e5e3ae1a4f4/ls03/nhl/2021/01/22/NHL_GAME_VIDEO_COLLAK_M2_VISIT_20210122_1610402487359/5600K/5600_complete.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611374456~acl=/*~id=nhlGatewayId:4934646~data=2013293711~hmac=f2f5591428e6b934f1351b496914e6fee3589fdf4cd76ba4f1af5bb44be8e944/38a2c756f556e8e795265e5e3ae1a4f4/ls03/nhl/2021/01/22/NHL_GAME_VIDEO_COLLAK_M2_VISIT_20210122_1610402487359/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/2013293711/kid/70339506 (HTTPSConnectionPool(host='mf.svc.nhl.com', port=443): Max retries exceeded with url: /ws/media/mf/v2.3/key/silk/mediaid/2013293711/kid/70339506 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x110d405e0>: Failed to establish a new connection: [Errno 61] Connection refused')))
[cli][error] Try 3/3: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611374456~acl=/*~id=nhlGatewayId:4934646~data=2013293711~hmac=f2f5591428e6b934f1351b496914e6fee3589fdf4cd76ba4f1af5bb44be8e944/38a2c756f556e8e795265e5e3ae1a4f4/ls03/nhl/2021/01/22/NHL_GAME_VIDEO_COLLAK_M2_VISIT_20210122_1610402487359/5600K/5600_complete.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611374456~acl=/*~id=nhlGatewayId:4934646~data=2013293711~hmac=f2f5591428e6b934f1351b496914e6fee3589fdf4cd76ba4f1af5bb44be8e944/38a2c756f556e8e795265e5e3ae1a4f4/ls03/nhl/2021/01/22/NHL_GAME_VIDEO_COLLAK_M2_VISIT_20210122_1610402487359/master_wired60.m3u8')> (No data returned from stream)
error: Could not open stream <HLSStream('https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611374456~acl=/*~id=nhlGatewayId:4934646~data=2013293711~hmac=f2f5591428e6b934f1351b496914e6fee3589fdf4cd76ba4f1af5bb44be8e944/38a2c756f556e8e795265e5e3ae1a4f4/ls03/nhl/2021/01/22/NHL_GAME_VIDEO_COLLAK_M2_VISIT_20210122_1610402487359/5600K/5600_complete.m3u8', 'https://hlslive-akc.med2.med.nhl.com/hdnts=exp=1611374456~acl=/*~id=nhlGatewayId:4934646~data=2013293711~hmac=f2f5591428e6b934f1351b496914e6fee3589fdf4cd76ba4f1af5bb44be8e944/38a2c756f556e8e795265e5e3ae1a4f4/ls03/nhl/2021/01/22/NHL_GAME_VIDEO_COLLAK_M2_VISIT_20210122_1610402487359/master_wired60.m3u8')>, tried 3 times, exiting
[cli][info] Closing currently open stream...

ERROR: StreamLink failed
~/Downloads/lazystream $ 
tarkah commented 3 years ago

Ahh, no all of them need to be set to the IP address that freegamez.ga resolves to. It itself doesn't need to be listed, just the nhl / mlb hosts.

mritzman-dg commented 3 years ago

Ah, gotcha. I'll try it again tonight. This is what I added to my /etc/hosts file:

165.22.201.101 mf.svc.nhl.com
165.22.201.101 playback.svcs.mlb.com
165.22.201.101 mlb-ws-mf.media.mlb.com
tarkah commented 3 years ago

@cbunyked Based on the error, it doesn't appear you have VLC in your PATH. Are you on windows or linux? On windows, it should be something like C:\Program Files\VideoLAN\VLC for vlc and C:\Users\{{your user}}\AppData\Local\Streamlink\bin for streamlink (also needed installed and in path).

mritzman-dg commented 3 years ago

ok, it's NOW WORKING with the changes made to the etc/hosts file mentioned here as well as installing vlc on the command line here

thanks for your help @tarkah!

tarkah commented 3 years ago

Wooo! Glad you got it working. Enjoy!