This commit is contained in:
GH Action - Upstream Sync 2023-02-19 01:39:45 +00:00
commit dc8732f83e
6 changed files with 9 additions and 12 deletions

View File

@ -61,7 +61,7 @@ public class API {
private API() {
this.auth = new Auth();
this.lock = new ReentrantLock();
this.lock = new ReentrantLock(true);
}
public void setRefreshToken(String token) {

View File

@ -14,12 +14,7 @@ public class Push extends Ali {
public String detailContent(List<String> ids) throws Exception {
String url = ids.get(0).trim();
if (url.contains("aliyundrive")) return super.detailContent(ids);
List<String> playFrom = Arrays.asList("直連", "嗅探", "解析");
List<String> playUrl = Arrays.asList("播放$" + url, "播放$" + url, "播放$" + url);
Vod vod = create(url);
vod.setVodPlayFrom(TextUtils.join("$$$", playFrom));
vod.setVodPlayUrl(TextUtils.join("$$$", playUrl));
return Result.string(vod);
return Result.string(vod(url));
}
@Override
@ -30,12 +25,14 @@ public class Push extends Ali {
return Result.get().url(id).string();
}
private Vod create(String url) {
private Vod vod(String url) {
Vod vod = new Vod();
vod.setTypeName("FongMi");
vod.setVodId(url);
vod.setVodName(url);
vod.setTypeName("FongMi");
vod.setVodPic("https://pic.rmb.bdstatic.com/bjh/1d0b02d0f57f0a42201f92caba5107ed.jpeg");
vod.setVodPlayFrom(TextUtils.join("$$$", Arrays.asList("直連", "嗅探", "解析")));
vod.setVodPlayUrl(TextUtils.join("$$$", Arrays.asList("播放$" + url, "播放$" + url, "播放$" + url)));
return vod;
}
}

Binary file not shown.

View File

@ -1 +1 @@
dfb5901a5b7325e193395db4ae6541b4
a8254c66a7166602df254825bfe78429

View File

@ -1,5 +1,5 @@
{
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;dfb5901a5b7325e193395db4ae6541b4",
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a8254c66a7166602df254825bfe78429",
"wallpaper": "https://gao.chuqiuyu.tk",
"lives": [
{

View File

@ -1,5 +1,5 @@
{
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;dfb5901a5b7325e193395db4ae6541b4",
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a8254c66a7166602df254825bfe78429",
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
"lives": [
{