diff --git a/README.md b/README.md index 53addf4..46f2d03 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,10 @@ [IPTV 大佬 YueChan,已经内置](https://github.com/YueChan/Live) [色色源](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/js/spider_sources.json) + +# 编写 uz 可执行的脚本 +https://github.com/YYDS678/uzVideo/tree/main/js + +# 如有任何相关问题联系:[机器人](https://t.me/uzVideoAppbot) \ No newline at end of file diff --git a/js/README.md b/js/README.md index 3a9af35..8bc5c22 100644 --- a/js/README.md +++ b/js/README.md @@ -9,7 +9,7 @@ 7. 为您的脚本编写以下 json 配置文件 ``` { - "name": "厂长视频", + "name": "名称", "api": "脚本链接", "instance": "实例名称", "webSite": "视频站地址,当获取分类时传入该地址", diff --git a/js/core/uzCode.js b/js/core/uzCode.js index fccca34..4d37c48 100644 --- a/js/core/uzCode.js +++ b/js/core/uzCode.js @@ -7116,7 +7116,6 @@ class VideoClass { } } - /** * 视频详情 */ @@ -7234,44 +7233,44 @@ class WebApiBase { /** * 异步获取分类列表的方法。 * @param {UZArgs} args - * @returns {Promise} + * @returns {@Promise} */ async getClassList(args) { - return new RepVideoClassList(); + return JSON.stringify(new RepVideoClassList()); } /** * 获取分类视频列表 * @param {UZArgs} args - * @returns {Promise} + * @returns {@Promise} */ async getVideoList(args) { - return new RepVideoList(); + return JSON.stringify(new RepVideoList()); } /** * 获取视频详情 * @param {UZArgs} args - * @returns {Promise} + * @returns {@Promise} */ async getVideoDetail(args) { - return new RepVideoDetail(); + return JSON.stringify(new RepVideoDetail()); } /** * 获取视频的播放地址 * @param {UZArgs} args - * @returns {Promise} + * @returns {@Promise} */ async getVideoPlayUrl(args) { - return new RepVideoPlayUrl(); + return JSON.stringify(new RepVideoPlayUrl()); } /** * 搜索视频 * @param {UZArgs} args - * @returns {Promise} + * @returns {@Promise} */ async searchVideo(args) { - return new RepVideoList(); + return JSON.stringify(new RepVideoList()); } } @@ -7298,19 +7297,19 @@ async function req(url, options) { return pro; } - - class UZUtils { static getHostFromURL(url) { - const protocolEndIndex = url.indexOf('://'); + const protocolEndIndex = url.indexOf("://"); if (protocolEndIndex === -1) { return null; } - const hostStartIndex = protocolEndIndex + 3; - const hostEndIndex = url.indexOf('/', hostStartIndex); - const host = hostEndIndex === -1 ? url.slice(hostStartIndex) : url.slice(hostStartIndex, hostEndIndex); - + const hostEndIndex = url.indexOf("/", hostStartIndex); + const host = + hostEndIndex === -1 + ? url.slice(hostStartIndex) + : url.slice(hostStartIndex, hostEndIndex); + return `${url.slice(0, protocolEndIndex + 3)}${host}`; } } diff --git a/update.json b/update.json index d723f9d..4a2b974 100644 --- a/update.json +++ b/update.json @@ -1,5 +1,5 @@ { - "version":"1.2.5", - "apk":"https://mirror.ghproxy.com/https://github.com/YYDS678/uzVideo/raw/main/uz影视_追剧直播无广免费1.2.5.apk", - "ipa":"https://mirror.ghproxy.com/https://github.com/YYDS678/uzVideo/raw/main/uz影视_追剧直播无广免费1.2.5.ipa" + "version":"1.2.6", + "apk":"https://mirror.ghproxy.com/https://github.com/YYDS678/uzVideo/raw/main/uz影视_追剧直播无广免费1.2.6.apk", + "ipa":"https://mirror.ghproxy.com/https://github.com/YYDS678/uzVideo/raw/main/uz影视_追剧直播无广免费1.2.6.ipa" } diff --git a/uz影视_追剧直播无广免费1.2.5.apk b/uz影视_追剧直播无广免费1.2.6.apk similarity index 88% rename from uz影视_追剧直播无广免费1.2.5.apk rename to uz影视_追剧直播无广免费1.2.6.apk index 77bd692..76edee3 100644 Binary files a/uz影视_追剧直播无广免费1.2.5.apk and b/uz影视_追剧直播无广免费1.2.6.apk differ diff --git a/uz影视_追剧直播无广免费1.2.6.dmg b/uz影视_追剧直播无广免费1.2.6.dmg new file mode 100644 index 0000000..c01999c Binary files /dev/null and b/uz影视_追剧直播无广免费1.2.6.dmg differ diff --git a/uz影视_追剧直播无广免费1.2.5.ipa b/uz影视_追剧直播无广免费1.2.6.ipa similarity index 82% rename from uz影视_追剧直播无广免费1.2.5.ipa rename to uz影视_追剧直播无广免费1.2.6.ipa index 6a34512..4c8f4ee 100644 Binary files a/uz影视_追剧直播无广免费1.2.5.ipa and b/uz影视_追剧直播无广免费1.2.6.ipa differ diff --git a/uz影视_追剧直播无广免费1.2.6.msix b/uz影视_追剧直播无广免费1.2.6.msix new file mode 100644 index 0000000..309cd3c Binary files /dev/null and b/uz影视_追剧直播无广免费1.2.6.msix differ