This commit is contained in:
Saul Hetherman
2024-06-16 10:06:17 +08:00
parent ab70aa8a96
commit 489f9075ae
8 changed files with 28 additions and 22 deletions

View File

@@ -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)

View File

@@ -9,7 +9,7 @@
7. 为您的脚本编写以下 json 配置文件
```
{
"name": "厂长视频",
"name": "名称",
"api": "脚本链接",
"instance": "实例名称",
"webSite": "视频站地址,当获取分类时传入该地址",

View File

@@ -7116,7 +7116,6 @@ class VideoClass {
}
}
/**
* 视频详情
*/
@@ -7234,44 +7233,44 @@ class WebApiBase {
/**
* 异步获取分类列表的方法。
* @param {UZArgs} args
* @returns {Promise<RepVideoClassList>}
* @returns {@Promise<JSON.stringify(new RepVideoClassList())>}
*/
async getClassList(args) {
return new RepVideoClassList();
return JSON.stringify(new RepVideoClassList());
}
/**
* 获取分类视频列表
* @param {UZArgs} args
* @returns {Promise<RepVideoList>}
* @returns {@Promise<JSON.stringify(new RepVideoList())>}
*/
async getVideoList(args) {
return new RepVideoList();
return JSON.stringify(new RepVideoList());
}
/**
* 获取视频详情
* @param {UZArgs} args
* @returns {Promise<RepVideoDetail>}
* @returns {@Promise<JSON.stringify(new RepVideoDetail())>}
*/
async getVideoDetail(args) {
return new RepVideoDetail();
return JSON.stringify(new RepVideoDetail());
}
/**
* 获取视频的播放地址
* @param {UZArgs} args
* @returns {Promise<RepVideoPlayUrl>}
* @returns {@Promise<JSON.stringify(new RepVideoPlayUrl())>}
*/
async getVideoPlayUrl(args) {
return new RepVideoPlayUrl();
return JSON.stringify(new RepVideoPlayUrl());
}
/**
* 搜索视频
* @param {UZArgs} args
* @returns {Promise<RepVideoList>}
* @returns {@Promise<JSON.stringify(new RepVideoList())>}
*/
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}`;
}
}

View File

@@ -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"
}

Binary file not shown.

Binary file not shown.