Skip to content

Commit

Permalink
wip: 新增部分资源API站点
Browse files Browse the repository at this point in the history
  • Loading branch information
renxia committed Jun 29, 2023
1 parent 52a8ca3 commit 46bbd86
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/video-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface VSOptions {
export class VideoSearch {
public apiMap = new Map<string, M3u8StorConfig['remoteConfig']['data']['apiSites'][0]>();
public get api() {
return [...this.apiMap.values()];
return [...this.apiMap.values()].reverse();
}
constructor(protected options: VSOptions = {}) {
if (!options.api?.length) options.api = [];
Expand Down
102 changes: 102 additions & 0 deletions test/remote-config-prepare.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"apiSites": [
{
"desc": "天堂",
"url": "http://vipmv.cc/api.php/provide/vod/",
"home": "http://vipmv.cc"
},
{
"desc": "快车",
"home": "http://kuaichezy.com",
"url": "https://caiji.kczyapi.com/api.php/provide/vod/"
},
{
"desc": "天空",
"home": "https://tiankongzy.com",
"url": "https://api.tiankongapi.com/api.php/provide/vod/"
},
{
"desc": "飞速",
"home": "https://fszy2.com",
"url": "https://www.feisuzyapi.com/api.php/provide/vod/"
},
{
"desc": "卧龙",
"home": "http://wolongzy.cc",
"url": "https://collect.wolongzy.cc/api.php/provide/vod/"
},
{
"desc": "无尽",
"home": "https://wujinzy.net",
"url": "https://api.wujinapi.me/api.php/provide/vod/"
},
{
"desc": "金鹰",
"home": "https://jyzyapi.com",
"url": "https://jyzyapi.com/provide/vod/",
"enable": 1
},
{
"desc": "金鹰备用1",
"home": "http://jyzy1.com",
"url": "https://jyzy1.com/provide/vod/",
"enable": 0
},
{
"desc": "金鹰备用2",
"home": "http://jinyingzy.com",
"url": "https://jyzyapi.com/provide/vod/",
"enable": 0
},
{
"desc": "新浪",
"home": "https://www.xinlangzy.com",
"url": "https://api.xinlangapi.com/xinlangapi.php/provide/vod/"
},
{
"desc": "光速",
"home": "https://guangsuzy.com",
"url": "https://api.guangsuapi.com/api.php/provide/vod/"
},
{
"desc": "闪电",
"home": "https://www.shan05.com",
"url": "https://sdzyapi.com/api.php/provide/vod/"
},
{
"desc": "apibdzy(百度云资源)",
"home": "https://bdyunzy.com",
"url": "https://api.apibdzy.com/api.php/provide/vod/"
},
{
"desc": "U酷",
"home": "https://ukuzy0.com",
"url": "https://api.ukuapi.com/api.php/provide/vod/"
},
{
"desc": "CK资源",
"home": "https://www.ckzy1.com/",
"url": "https://ckzy.me/api.php/provide/vod/"
},
{
"desc": "量子",
"home": "http://lzizy.net",
"url": "https://cj.lziapi.com/api.php/provide/vod/"
},
{
"desc": "速播",
"home": "https://www.subozy1.com",
"url": "https://subocaiji.com/api.php/provide/vod/"
},
{
"desc": "红牛",
"home": "https://hongniuzy.net/help/",
"url": "https://www.hongniuzy2.com/api.php/provide/vod/"
},
{
"desc": "6U",
"url": "http://www.6uapi.cc/api.php/provide/vod/",
"home": "http://www.6uzy.cc"
}
]
}
33 changes: 24 additions & 9 deletions test/remote-config.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
{
"apiSites": [
{
"url": "https://jyzyapi.com/provide/vod/",
"desc": "金鹰",
"enable": 1
"desc": "天堂",
"url": "http://vipmv.cc/api.php/provide/vod/",
"home": "http://vipmv.cc"
},
{
"url": "https://jyzy1.com/provide/vod/",
"desc": "金鹰备用1",
"enable": 0
"desc": "快车",
"home": "http://kuaichezy.com",
"url": "https://caiji.kczyapi.com/api.php/provide/vod/"
},
{
"url": "https://api.xinlangapi.com/xinlangapi.php/provide/vod/",
"desc": "新浪API",
"enable": 1
"desc": "天空",
"home": "https://tiankongzy.com",
"url": "https://api.tiankongapi.com/api.php/provide/vod/"
},
{
"desc": "飞速",
"home": "https://fszy2.com",
"url": "https://www.feisuzyapi.com/api.php/provide/vod/"
},
{
"desc": "卧龙",
"home": "http://wolongzy.cc",
"url": "https://collect.wolongzy.cc/api.php/provide/vod/"
},
{
"desc": "无尽",
"home": "https://wujinzy.net",
"url": "https://api.wujinapi.me/api.php/provide/vod/"
}
]
}

0 comments on commit 46bbd86

Please sign in to comment.