更新
This commit is contained in:
@@ -15,9 +15,9 @@
|
|||||||
|
|
||||||
[色色源](https://mirror.ghproxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo/main/video_sources_sese.json)
|
[色色源](https://mirror.ghproxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo/main/video_sources_sese.json)
|
||||||
|
|
||||||
[大佬脚本源](https://mirror.ghproxy.com/https://raw.githubusercontent.com/Yswag/uzVideo/main/js/spider_sources.json)
|
[大佬扩展源](https://mirror.ghproxy.com/https://raw.githubusercontent.com/Yswag/uzVideo/main/js/spider_sources.json)
|
||||||
|
|
||||||
# 编写 uz 可执行的脚本
|
# 编写 uz 可执行的扩展
|
||||||
|
|
||||||
<https://github.com/YYDS678/uzVideo/tree/main/js>
|
<https://github.com/YYDS678/uzVideo/tree/main/js>
|
||||||
|
|
||||||
|
|||||||
14
js/README.md
14
js/README.md
@@ -1,17 +1,17 @@
|
|||||||
# 编写 uz 可执行的脚本
|
# 编写 uz 可执行的扩展
|
||||||
|
|
||||||
1. 感谢您的关注,由于作者对 js 了解甚少,所以内置的代码不够全面。**如果您要编写 uz 可执行的脚本需要添加代码或其他问题,可以联系[机器人](https://t.me/uzVideoAppbot)**
|
1. 感谢您的关注,由于作者对 js 了解甚少,所以内置的代码不够全面。**如果您要编写 uz 可执行的扩展需要添加代码或其他问题,可以联系[机器人](https://t.me/uzVideoAppbot)**
|
||||||
2. uzCode.js 内部定义了一些类和方法,您需要在脚本中实现 WebApiBase 的所有方法
|
2. uzCode.js 内部定义了一些类和方法,您需要在扩展中实现 WebApiBase 的所有方法
|
||||||
3. uz 内部仅有一个运行时,所有 js 代码(包括脚本)都在一起加载执行。所以您的脚本内类名一定要特殊,实例名称也要特殊
|
3. uz 内部仅有一个运行时,所有 js 代码(包括扩展)都在一起加载执行。所以您的扩展内类名一定要特殊,实例名称也要特殊
|
||||||
4. 不支持 import export
|
4. 不支持 import export
|
||||||
5. 集成库可在 `uz3lib.js` 查看,如需添加其他库通用库请联系[机器人](https://t.me/uzVideoAppbot)
|
5. 集成库可在 `uz3lib.js` 查看,如需添加其他库通用库请联系[机器人](https://t.me/uzVideoAppbot)
|
||||||
6. 成对使用 `// ignore` uz 内部会忽略包裹的内容
|
6. 成对使用 `// ignore` uz 内部会忽略包裹的内容
|
||||||
7. 为您的脚本编写以下 json 配置文件
|
7. 为您的扩展编写以下 json 配置文件
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"name": "名称",
|
"name": "名称",
|
||||||
"api": "脚本链接",
|
"api": "扩展链接",
|
||||||
"instance": "实例名称",
|
"instance": "实例名称",
|
||||||
"webSite": "视频站地址。在 app 内用户可自行修改,当加载代码时会赋值给对象的 webSite 属性",
|
"webSite": "视频站地址。在 app 内用户可自行修改,当加载代码时会赋值给对象的 webSite 属性",
|
||||||
"remark": "备注"
|
"remark": "备注"
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# 脚本运行说明
|
# 扩展运行说明
|
||||||
|
|
||||||
1. 执行每个方法都会为 `webSite` 进行赋值
|
1. 执行每个方法都会为 `webSite` 进行赋值
|
||||||
2. 流程图
|
2. 流程图
|
||||||
|
|||||||
@@ -192,17 +192,17 @@ class UZArgs {
|
|||||||
class UZSubclassVideoListArgs extends UZArgs {
|
class UZSubclassVideoListArgs extends UZArgs {
|
||||||
constructor() {
|
constructor() {
|
||||||
/**
|
/**
|
||||||
* 主分类ID 即脚本返回的 @type {RepVideoClassList}.data[0].type_id
|
* 主分类ID 即扩展返回的 @type {RepVideoClassList}.data[0].type_id
|
||||||
*/
|
*/
|
||||||
this.mainClassId = "";
|
this.mainClassId = "";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 二级分类ID 即脚本返回的 @type {RepVideoSubclassList}.data.class.type_id
|
* 二级分类ID 即扩展返回的 @type {RepVideoSubclassList}.data.class.type_id
|
||||||
*/
|
*/
|
||||||
this.subclassId = "";
|
this.subclassId = "";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 筛选标签,按返回的顺序传入 即脚本返回的 @type {RepVideoSubclassList}.data.filter.
|
* 筛选标签,按返回的顺序传入 即扩展返回的 @type {RepVideoSubclassList}.data.filter.
|
||||||
* @type {FilterLabel[]}
|
* @type {FilterLabel[]}
|
||||||
*/
|
*/
|
||||||
this.filter = [];
|
this.filter = [];
|
||||||
@@ -210,7 +210,7 @@ class UZSubclassVideoListArgs extends UZArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 脚本基类
|
* 扩展基类
|
||||||
*/
|
*/
|
||||||
class WebApiBase {
|
class WebApiBase {
|
||||||
// 网站主页
|
// 网站主页
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class UZUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用于在 uz 脚本调试模式中展示 log 信息
|
* 用于在 uz 扩展调试模式中展示 log 信息
|
||||||
*/
|
*/
|
||||||
static debugLog() {
|
static debugLog() {
|
||||||
sendMessage("debugLog", JSON.stringify([...arguments]));
|
sendMessage("debugLog", JSON.stringify([...arguments]));
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version":"1.3.00",
|
"version":"1.5.30",
|
||||||
"apk":"https://t.me/uzvideoplay",
|
"apk":"https://t.me/uzvideoplay",
|
||||||
"ipa":"https://t.me/uzvideoplay",
|
"ipa":"https://t.me/uzvideoplay",
|
||||||
"update":"# 本次更新\n- 首页增加切换布局\n- 添加源列表自动加入订阅列表\n- iOS画中画修复完善\n- 修复其它部分已知问题"
|
"update":"# 本次更新\n\n- 优化广告过滤\n- 修复扫码输入\n- 修复其它部分已知问题\n\n# 增加群友反馈部分功能\n\n- 优化 win、mac 全屏播放"
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
uz影视_Android_1.5.30-arm64-v8a.apk
Normal file
BIN
uz影视_Android_1.5.30-arm64-v8a.apk
Normal file
Binary file not shown.
BIN
uz影视_Android_1.5.30-armeabi-v7a.apk
Normal file
BIN
uz影视_Android_1.5.30-armeabi-v7a.apk
Normal file
Binary file not shown.
BIN
uz影视_Android_1.5.30-x86_64.apk
Normal file
BIN
uz影视_Android_1.5.30-x86_64.apk
Normal file
Binary file not shown.
BIN
uz影视_iOS_1.5.30.ipa
Normal file
BIN
uz影视_iOS_1.5.30.ipa
Normal file
Binary file not shown.
BIN
uz影视_mac_1.5.30.dmg
Normal file
BIN
uz影视_mac_1.5.30.dmg
Normal file
Binary file not shown.
Reference in New Issue
Block a user