N3RD/JN/EXT/OPENJS/open/README.md

36 lines
1.4 KiB
Markdown
Raw Normal View History

2024-01-14 18:08:15 +08:00
## Support using private Gitee or GitHub repositories as remote config.
* github://<your personal access token>@github.com/<owner>/<repo>/<ref>/<file path>
* gitee://<your access token>@gitee.com/<owner>/<repo>/<ref>/<file path>
* github://ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@github.com/catvod/TestCfg/main/config_open.json
* gitee://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@gitee.com/catvod/test-cfg/master/config_open.json
2023-07-25 20:23:38 +08:00
2024-01-14 18:08:15 +08:00
## personal access token
* Settings > Developer settings > Personal access tokens > Token (classic) > Generate new token
* Settings > Developer settings > Personal access tokens > Fine-grained tokens > Generate new token
2023-07-25 20:23:38 +08:00
2024-01-14 18:08:15 +08:00
## 远端配置:
* github://ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@github.com/YuanHsing/CatVodOpen/main/js/config_open2.json
* github://github_pat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@github.com/YuanHsing/CatVodOpen/main/js/config_open2.json
## 本地配置:
* assets://js/config_open.json
## 参考教程:
* https://omii.top/1296.html
## 添加格式:
{
"key": "pan99",
"name": "🟢 盘九",
"type": 3,
"api": "./pan99_open.js",
"ext": "填入阿里token"
},
//"key"、"name" 内:与其他不重复的名称均可。
//"type" 3为影视10为有声读物
//"api" 填写js路径"ext" 填写扩展内容例如玩偶的token。