更新
This commit is contained in:
@@ -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)
|
||||
@@ -9,7 +9,7 @@
|
||||
7. 为您的脚本编写以下 json 配置文件
|
||||
```
|
||||
{
|
||||
"name": "厂长视频",
|
||||
"name": "名称",
|
||||
"api": "脚本链接",
|
||||
"instance": "实例名称",
|
||||
"webSite": "视频站地址,当获取分类时传入该地址",
|
||||
|
||||
@@ -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}`;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
BIN
uz影视_追剧直播无广免费1.2.6.dmg
Normal file
BIN
uz影视_追剧直播无广免费1.2.6.dmg
Normal file
Binary file not shown.
Binary file not shown.
BIN
uz影视_追剧直播无广免费1.2.6.msix
Normal file
BIN
uz影视_追剧直播无广免费1.2.6.msix
Normal file
Binary file not shown.
Reference in New Issue
Block a user