streamlink / streamlink

Streamlink is a CLI utility which pipes video streams from various services into a video player
https://streamlink.github.io/
BSD 2-Clause "Simplified" License
10.12k stars 1.12k forks source link

plugins.huya: 403 Client Error: Forbidden for url #6293

Closed jumuzerg closed 2 weeks ago

jumuzerg commented 2 weeks ago

Checklist

Collaboration

Streamlink version

huya.com broken

Description

huya not work? sorry for my bad and forgive my impudence

Debug log

C:\Users\elarsenio>E:\matebeats\Soft\network\Streamlink\bin\streamlink.exe https://huya.com/sbwfz best --loglevel=debug 
[session][debug] Loading plugin: huya
[cli][debug] OS:         Windows 10
[cli][debug] Python:     3.12.2
[cli][debug] OpenSSL:    OpenSSL 3.0.13 30 Jan 2024
[cli][debug] Streamlink: 6.6.1
[cli][debug] Dependencies:
[cli][debug]  certifi: 2024.2.2
[cli][debug]  isodate: 0.6.1
[cli][debug]  lxml: 5.1.0
[cli][debug]  pycountry: 23.12.11
[cli][debug]  pycryptodome: 3.20.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.31.0
[cli][debug]  trio: 0.24.0
[cli][debug]  trio-websocket: 0.11.1
[cli][debug]  typing-extensions: 4.9.0
[cli][debug]  urllib3: 2.2.0
[cli][debug]  websocket-client: 1.7.0
[cli][debug] Arguments:
[cli][debug]  url=https://huya.com/sbwfz
[cli][debug]  stream=['best']
[cli][debug]  --loglevel=debug
[cli][debug]  --player=E:\matebeats\Soft\tools\VLC\vlc.exe
[cli][info] Found matching plugin huya for URL https://huya.com/sbwfz
[plugins.huya][debug] QUALITY_WEIGHTS: {'source_al': 100, 'source_tx': -1, 'source_hw': -1, 'source_hs': 0}
[cli][info] Available streams: source_tx (worst), source_hw, source_hs, source_al (best)
[cli][info] Opening stream: source_al (http)
[cli][info] Starting player: E:\matebeats\Soft\tools\VLC\vlc.exe
[cli][error] Try 1/1: Could not open stream <HTTPStream ['http', 'https://aldirect.flv.huya.com/huyalive/70165683-70165683-301359313786503168-140454822-10057-A-0-1.flv?wsSecret=6258c40382e68d4c356b099f63d4db16&wsTime=6735fb5f']> (Could not open stream: Unable to open URL: https://aldirect.flv.huya.com/huyalive/70165683-70165683-301359313786503168-140454822-10057-A-0-1.flv?wsSecret=6258c40382e68d4c356b099f63d4db16&wsTime=6735fb5f (403 Client Error: Forbidden for url: https://aldirect.flv.huya.com/huyalive/70165683-70165683-301359313786503168-140454822-10057-A-0-1.flv?wsSecret=6258c40382e68d4c356b099f63d4db16&wsTime=6735fb5f))
error: Could not open stream <HTTPStream ['http', 'https://aldirect.flv.huya.com/huyalive/70165683-70165683-301359313786503168-140454822-10057-A-0-1.flv?wsSecret=6258c40382e68d4c356b099f63d4db16&wsTime=6735fb5f']>, tried 1 times, exiting
bastimeyer commented 2 weeks ago

[cli][debug] Streamlink: 6.6.1

https://streamlink.github.io/changelog.html