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

plugins.huya: stream not opening #5487

Open
4 tasks done
nopsy opened this issue Aug 7, 2023 · 0 comments
Open
4 tasks done

plugins.huya: stream not opening #5487

nopsy opened this issue Aug 7, 2023 · 0 comments
Labels
plugin issue A Plugin does not work correctly

Comments

@nopsy
Copy link

nopsy commented Aug 7, 2023

Checklist

Streamlink version

Latest stable release

Description

When attempting to open a huya stream, an error 'Could not open stream' occurs. Depending on the source used, an error may not be returned at all and stream will immediately end.

Debug log

streamlink -l debug https://www.huya.com/lingyic                                                                                  (08-06 20:27)
[cli][debug] OS:         Linux-6.4.7-arch1-3-x86_64-with-glibc2.38
[cli][debug] Python:     3.11.3
[cli][debug] Streamlink: 6.0.1
[cli][debug] Dependencies:
[cli][debug]  certifi: 2023.7.22
[cli][debug]  isodate: 0.6.1
[cli][debug]  lxml: 4.9.2
[cli][debug]  pycountry: 22.3.5
[cli][debug]  pycryptodome: 3.18.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.28.2
[cli][debug]  trio: 0.22.2
[cli][debug]  trio-websocket: 0.10.3
[cli][debug]  typing-extensions: 4.7.1
[cli][debug]  urllib3: 1.26.15
[cli][debug]  websocket-client: 1.6.1
[cli][debug] Arguments:
[cli][debug]  url=https://www.huya.com/lingyic
[cli][debug]  --loglevel=debug
[cli][debug]  --player=mpv
[cli][debug]  --default-stream=['best']
[cli][info] Found matching plugin huya for URL https://www.huya.com/lingyic
[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: mpv
[cli][error] Try 1/1: Could not open stream <HTTPStream ['http', 'https://aldirect.flv.huya.com/huyalive/1005928319-1005928319-4320429232225255424-2011980094-10057-A-0-1.flv?wsSecret=3d98d819b34e386cc4d4b782cde657e8&wsTime=64d039aa&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&fs=bgct']> (Could not open stream: Unable to open URL: https://aldirect.flv.huya.com/huyalive/1005928319-1005928319-4320429232225255424-2011980094-10057-A-0-1.flv?wsSecret=3d98d819b34e386cc4d4b782cde657e8&wsTime=64d039aa&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&fs=bgct (403 Client Error: Forbidden for url: https://aldirect.flv.huya.com/huyalive/1005928319-1005928319-4320429232225255424-2011980094-10057-A-0-1.flv?wsSecret=3d98d819b34e386cc4d4b782cde657e8&wsTime=64d039aa&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&fs=bgct))
error: Could not open stream <HTTPStream ['http', 'https://aldirect.flv.huya.com/huyalive/1005928319-1005928319-4320429232225255424-2011980094-10057-A-0-1.flv?wsSecret=3d98d819b34e386cc4d4b782cde657e8&wsTime=64d039aa&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_live&fs=bgct']>, tried 1 times, exiting

streamlink -l debug https://www.huya.com/579187 best                                                                              (08-06 20:38)
[cli][debug] OS:         Linux-6.4.7-arch1-3-x86_64-with-glibc2.38
[cli][debug] Python:     3.11.3
[cli][debug] Streamlink: 6.0.1
[cli][debug] Dependencies:
[cli][debug]  certifi: 2023.7.22
[cli][debug]  isodate: 0.6.1
[cli][debug]  lxml: 4.9.2
[cli][debug]  pycountry: 22.3.5
[cli][debug]  pycryptodome: 3.18.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.28.2
[cli][debug]  trio: 0.22.2
[cli][debug]  trio-websocket: 0.10.3
[cli][debug]  typing-extensions: 4.7.1
[cli][debug]  urllib3: 1.26.15
[cli][debug]  websocket-client: 1.6.1
[cli][debug] Arguments:
[cli][debug]  url=https://www.huya.com/579187
[cli][debug]  stream=['best']
[cli][debug]  --loglevel=debug
[cli][debug]  --player=mpv
[cli][debug]  --default-stream=['best']
[cli][info] Found matching plugin huya for URL https://www.huya.com/579187
[plugins.huya][debug] QUALITY_WEIGHTS: {'source_al': 0, 'source_tx': 100, 'source_hw': -1}
[cli][info] Available streams: source_hw (worst), source_al, source_tx (best)
[cli][info] Opening stream: source_tx (http)
[cli][info] Starting player: mpv
[cli][debug] Pre-buffering 8192 bytes
[cli.output][debug] Opening subprocess: ['/usr/bin/mpv', '--force-media-title=https://www.huya.com/579187', '-']
[cli][debug] Writing stream to output
[cli][info] Stream ended
[cli][info] Closing currently open stream...
@nopsy nopsy added the plugin issue A Plugin does not work correctly label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin issue A Plugin does not work correctly
Projects
None yet
Development

No branches or pull requests

1 participant