mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 12:23:03 +00:00
里程碑版本前奏: 1. 添加google云盘解析(需要联网), 2. web页面人工智障自动解析URL, 3. 优化一堆细节问题, 4: git换行配置(待验证), 5. 酷我解析可用
This commit is contained in:
@@ -5,10 +5,11 @@ import cn.qaiu.entity.ShareLinkInfo;
|
||||
import cn.qaiu.lz.common.cache.CacheManager;
|
||||
import cn.qaiu.lz.common.util.URLParamUtil;
|
||||
import cn.qaiu.lz.web.model.LinkInfoResp;
|
||||
import cn.qaiu.lz.web.model.StatisticsInfo;
|
||||
import cn.qaiu.lz.web.model.SysUser;
|
||||
import cn.qaiu.lz.web.service.DbService;
|
||||
import cn.qaiu.lz.web.service.UserService;
|
||||
import cn.qaiu.lz.web.model.StatisticsInfo;
|
||||
import cn.qaiu.parser.PanDomainTemplate;
|
||||
import cn.qaiu.parser.ParserCreate;
|
||||
import cn.qaiu.vx.core.annotaions.RouteHandler;
|
||||
import cn.qaiu.vx.core.annotaions.RouteMapping;
|
||||
@@ -21,6 +22,12 @@ import io.vertx.core.http.HttpServerRequest;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@RouteHandler(value = "/v2", order = 10)
|
||||
@Slf4j
|
||||
public class ParserApi {
|
||||
@@ -76,4 +83,17 @@ public class ParserApi {
|
||||
return linkPrefix + (isJson ? "/json/" : "/d/") + create.genPathSuffix();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支持的网盘列表
|
||||
* @return list-map: name: 网盘名, type: 网盘标识, url: 网盘域名地址
|
||||
*/
|
||||
@RouteMapping("/getPanList")
|
||||
public List<Map<String, String>> getPanList() {
|
||||
return Arrays.stream(PanDomainTemplate.values()).map(pan -> new TreeMap<String, String>() {{
|
||||
put("name", pan.getDisplayName());
|
||||
put("type", pan.name().toLowerCase());
|
||||
put("url", pan.getPanDomain());
|
||||
}}).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -10,11 +10,12 @@ server:
|
||||
# 反向代理服务器配置路径(不用加后缀)
|
||||
proxyConf: server-proxy
|
||||
|
||||
# vertx线程配置, 为0表示eventLoopPoolSize将会采用默认配置(CPU核心*2) workerPoolSize将会采用默认20
|
||||
# vertx核心线程配置(一般无需改的), 为0表示eventLoopPoolSize将会采用默认配置(CPU核心*2) workerPoolSize将会采用默认20
|
||||
vertx:
|
||||
eventLoopPoolSize: 0
|
||||
workerPoolSize: 0
|
||||
|
||||
# vertx-service配置(一般无需改的)
|
||||
custom:
|
||||
# 异步服务线程数
|
||||
asyncServiceInstances: 4
|
||||
|
||||
@@ -157,3 +157,17 @@ https://onedrive.live.com/redir?resid=ABFD0A26E47D3458!4699&authkey=!AO7jjiGDnJW
|
||||
|
||||
###
|
||||
https://api.onedrive.com/v1.0/drives/abfd0a26e47d3458/items/ABFD0A26E47D3458!4699?authkey=!AO7jjiGDnJWoNwo
|
||||
|
||||
### 谷歌云盘
|
||||
https://drive.google.com/file/d/1iofiAmFs2NaBHp4OyeIo7sbVX-jQ0imB/view?usp=sharing
|
||||
###
|
||||
https://drive.google.com/file/d/151bR-nk-tOBm9QAFaozJIVt2WYyCMkoz/view?usp=drive_link
|
||||
#302链
|
||||
#https://drive.usercontent.google.com/uc?id=1iofiAmFs2NaBHp4OyeIo7sbVX-jQ0imB&export=download
|
||||
#直链
|
||||
#https://drive.usercontent.google.com/download?id=1iofiAmFs2NaBHp4OyeIo7sbVX-jQ0imB&export=download
|
||||
|
||||
#https://drive.usercontent.google.com/download?id=151bR-nk-tOBm9QAFaozJIVt2WYyCMkoz&export=download&confirm=t&uuid=bb8870cb-debd-4ba0-b239-aca14b6a9782&at=AENtkXYr-p2Bv0EDgKyXyYcZwOwA%3A1730526150700
|
||||
#https://drive.usercontent.google.com/download?id=151bR-nk-tOBm9QAFaozJIVt2WYyCMkoz&export=download&confirm=t&uuid=c9bb0ec9-3858-47a5-8cc1-979145b9d866&at=AENtkXaWSisZ7HO9EqxoIdY_38tX%3A1730526571780
|
||||
#https://drive.usercontent.google.com/download?id=1_qu7GTFzIm9GpUtzSmn8F8SOn3fqaOOu&export=download&confirm=t&uuid=&at=AENtkXaWSisZ7HO9EqxoIdY_38tX%3A1730526571780
|
||||
|
||||
|
||||
@@ -172,6 +172,9 @@ GET http://127.0.0.1:6400/json/parser?url=https://iwx.mail.qq.com/ftn/download?f
|
||||
###
|
||||
GET http://127.0.0.1:6400/v2/statisticsInfo
|
||||
|
||||
###
|
||||
GET http://127.0.0.1:6400/v2/getPanList
|
||||
|
||||
###
|
||||
GET http://127.0.0.1:6400/v2/linkInfo?url=https://www.123865.com/s/iaKtVv-6OECd.html&pwd=DcGe
|
||||
###
|
||||
@@ -198,7 +201,7 @@ GET http://127.0.0.1:6401/json/parser?url=https://iwx.mail.qq.com/ftn/download?f
|
||||
|
||||
### PASS CT
|
||||
# @no-redirect
|
||||
GET http://127.0.0.1:6401/parser?url=https://474b.com/file/4015376-131945810
|
||||
GET http://127.0.0.1:6401/parser?url=https://123123-asd.474b.com/file/4015376-131945810
|
||||
|
||||
|
||||
### PASS MNE
|
||||
@@ -231,7 +234,7 @@ GET http://127.0.0.1:6401/parser?url=https://www.kugou.com/mixsong/9q98o5b9.html
|
||||
|
||||
### PASS MQW 酷我
|
||||
# @no-redirect
|
||||
GET http://127.0.0.1:6401/parser?url=https://kuwo.cn/play_detail/395500809
|
||||
GET http://127.0.0.1:6401/parser?url=https://kuwo.cn/play_detail/394906263
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user