issue.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. 错误:Could not link required node_modules
  2. 解决:在Python包安装路径下的js2py/node_import.py的17行有以下代码
  3. assert subprocess.call(
  4. 'cd %s;npm install babel-core babel-cli babel-preset-es2015 babel-polyfill babelify browserify browserify-shim'
  5. % repr(DIRNAME),
  6. shell=True,
  7. cwd=DIRNAME) == 0, 'Could not link required node_modules'
  8. 修改为
  9. assert subprocess.call(
  10. 'npm install babel-core babel-cli babel-preset-es2015 babel-polyfill babelify browserify browserify-shim',
  11. shell=True,
  12. cwd=DIRNAME) == 0, 'Could not link required node_modules'
  13. from asgiref.wsgi import WsgiToAsgi
  14. import uvicorn
  15. asgi_app = WsgiToAsgi(app)
  16. uvicorn.run('app:asgi_app', host=http_host, port=http_host, debug=False, workers=1)
  17. 另外一个很强的css解析库,性能待验证parsel
  18. https://cuiqingcai.com/202232.html
  19. 远程直播地址:
  20. "lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext=aHR0cHM6Ly9hZ2l0LmFpL2xjeC8xMS9yYXcvYnJhbmNoL21hc3Rlci9saXZl"]}]}],
  21. 下面格式原版tv_box才能用?
  22. "live","urls":["proxy://do=live&type=txt&ext=aHR0cHM6Ly9naXRjb2RlLm5ldC9xcV8yNjg5ODIzMS9UVkJveC8tL3Jhdy9tYWluL2xpdmUvMDgzMHpiLnR4dA=="]}]}],
  23. "lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext={{ base64Encode(host+'/lives') }}"]}]}],
  24. "lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext={% if config.LIVE_MODE==0 %}{{base64Encode(host+'/lives')}}{% else %}{{ base64Encode('https://gitcode.net/qq_26898231/TVBox/-/raw/main/live/0830zb.txt')}}{% endif %}"]}]}],
  25. "homepage":"https://gitcode.net/qq_32394351/dr_py",
  26. "imgo",
  27. config文件 type类型
  28. 0 资源网
  29. 1 app(xiaogui)
  30. 4 app(xiaogui) 播放的时候自动带上play 和 flag(线路名)