Closed nook4sh closed 3 years ago
是斗鱼的吗?
❯ python3 stream_finder.py https://www.douyu.com/60937
Please install at least one of the following Javascript interpreter.'
python packages: PyChakra, quickjs
applications: Gjs, CJS, QuickJS, JavaScriptCore, Node.js, etc.
CRITICAL:YKDL:No JS Interpreter found, can't parse douyu live/video!
❯ python3 stream_finder.py https://www.huya.com/louzou
site: Huya Live (虎牙直播)
title: [喂狗组]打碟「楼座 - [喂狗组]没想好播啥」
artist: 楼座
streams:
- format: current
container: flv
video-profile: current
# download-with: ykdl --format=current [URL]
Real urls:
http://tx.flv.huya.com/src/1811545061-1811545061-7780526792225325056-3623213578-10057-A-0-1.flv?wsSecret=b18de4af7f48dfbc56e9e7bb7af3faee&wsTime=5fa0ee61&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctyp=huya_tars&txyp=o%3Awx6%3B&fs=bgct
http://tx.hls.huya.com/src/1811545061-1811545061-7780526792225325056-3623213578-10057-A-0-1.m3u8?wsSecret=b18de4af7f48dfbc56e9e7bb7af3faee&wsTime=5fa0ee61&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctyp=huya_tars&txyp=o%3Awx6%3B&fs=bgct
❯ python3 stream_finder.py https://live.bilibili.com/1104224
CRITICAL:YKDL:主播正在觅食......
是的,斗鱼有这个问题,ykdl现在需要js runtime
ykdl斗鱼要js可能得有一两年了,我干脆在wiki里面提一下这个算了。
新版本我剔除了ykdl依赖,现在应该也不需要额外安装js运行时了。
如果用户未安装JS解释器(如quickjs),程序不能解析stream url,从而导致房间无法打开。 解决方法:安装js解释器即可,如
pip install quickjs