File tree Expand file tree Collapse file tree 9 files changed +482
-20
lines changed
parser/src/main/java/cn/qaiu/parser
web-service/src/main/resources Expand file tree Collapse file tree 9 files changed +482
-20
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ Cloudreve自建网盘 (ce) {origin}/s/{shareKey}
20
20
缓存key -> 下载URL
21
21
分享链接 -> add 网盘类型 pwd origin(私有化) -> 直链
22
22
23
-
24
- https://f.ws59.cn/f/e3peohu6192
25
-
26
23
开源版 TODO
27
24
1. 缓存优化, 配置自动重载
25
+ 2. 缓存删除接口(后台功能)
26
+ 3. JS脚本引擎 自定义解析
27
+
28
28
29
29
30
30
专属版 功能设计
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public abstract class PanBase implements IPanTool {
36
36
* Http client
37
37
*/
38
38
protected WebClient client = WebClient .create (WebClientVertxInit .get (),
39
- new WebClientOptions (). setUserAgentEnabled ( false ) );
39
+ new WebClientOptions ());
40
40
41
41
/**
42
42
* Http client session (会话管理, 带cookie请求)
Original file line number Diff line number Diff line change @@ -90,9 +90,10 @@ public enum PanDomainTemplate {
90
90
"https://qaiu.118pan.com/b{shareKey}" ,
91
91
P118Tool .class ),
92
92
// https://www.vyuyun.com/s/QMa6ie?password=I4KG7H
93
+ // https://www.vyuyun.com/s/QMa6ie/file?password=I4KG7H
93
94
PVYY ("微雨云存储" ,
94
- compile ("https://www\\ .vyuyun\\ .com/s/(?<KEY>[a-zA-Z\\ d-]+)(\\ ?password=.* )?" ),
95
- "https://www.vyuyun.com/s/{shareKey}" ,
95
+ compile ("https://www\\ .vyuyun\\ .com/s/(?<KEY>[a-zA-Z\\ d-]+)(/file)?( \\ ?password=(?<PWD> \\ w+) )?" ),
96
+ "https://www.vyuyun.com/s/{shareKey}?password={pwd} " ,
96
97
PvyyTool .class ),
97
98
// https://1drv.ms/w/s!Alg0feQmCv2rnRFd60DQOmMa-Oh_?e=buaRtp
98
99
POD ("OneDrive" ,
Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ public ParserCreate normalizeShareLink() {
43
43
// 返回规范化的标准链接
44
44
String standardUrl = getStandardUrlTemplate ()
45
45
.replace ("{shareKey}" , shareKey );
46
-
47
46
try {
48
47
String pwd = matcher .group (PWD );
48
+ if (StringUtils .isNotEmpty (pwd )) {
49
+ shareLinkInfo .setSharePassword (pwd );
50
+ }
49
51
standardUrl = standardUrl .replace ("{pwd}" , pwd );
50
52
} catch (Exception ignored ) {}
51
53
@@ -107,7 +109,9 @@ public ShareLinkInfo getShareLinkInfo() {
107
109
}
108
110
109
111
public ParserCreate setShareLinkInfoPwd (String pwd ) {
110
- shareLinkInfo .setSharePassword (pwd );
112
+ if (pwd != null ) {
113
+ shareLinkInfo .setSharePassword (pwd );
114
+ }
111
115
return this ;
112
116
}
113
117
Original file line number Diff line number Diff line change 1
1
package cn .qaiu .parser .impl ;
2
2
3
- import cn .qaiu .entity .ShareLinkInfo ;
3
+ import cn .qaiu .entity .ShareLinkInfo ;
4
4
import cn .qaiu .parser .PanBase ;
5
5
import io .vertx .core .Future ;
6
6
import io .vertx .core .json .JsonArray ;
Original file line number Diff line number Diff line change 7
7
import io .vertx .core .Promise ;
8
8
import io .vertx .core .WorkerExecutor ;
9
9
import io .vertx .core .json .JsonObject ;
10
- import io .vertx .core .net .ProxyOptions ;
11
10
import io .vertx .uritemplate .UriTemplate ;
12
11
13
12
import java .io .IOException ;
@@ -82,7 +81,6 @@ public Future<String> parse() {
82
81
.setTemplateParam ("resid1" , cid2 )
83
82
.setTemplateParam ("cid" , cid1 .toLowerCase ())
84
83
.setTemplateParam ("redeem" , redeem )
85
- .proxy (new ProxyOptions ().setHost ("127.0.0.1" ).setPort (7890 ))
86
84
.send ()
87
85
.onSuccess (r1 -> {
88
86
String auth =
Original file line number Diff line number Diff line change 10
10
<img :height =" 150" src =" ../public/images/lanzou111.png" alt =" lz" ></img >
11
11
</div >
12
12
</div >
13
- <h3 style =" text-align : center ;" >NFD网盘直链解析0.1.8_bate2 (API演示)</h3 >
13
+ <h3 style =" text-align : center ;" >NFD网盘直链解析0.1.8_bate3 (API演示)</h3 >
14
14
<div class =" typo" >
15
15
<p style =" text-align : center ;" >
16
16
<span >
66
66
<p style =" text-align : center " >
67
67
<el-button style =" margin-left : 40px ;margin-bottom : 10px " @click =" onSubmit" >解析测试</el-button >
68
68
<el-button style =" margin-left : 20px ;margin-bottom : 10px " @click =" genMd" >生成Markdown链接</el-button >
69
- <el-button style =" margin-left : 20px " @click =" generateQRCode" >生成二维码 </el-button >
69
+ <el-button style =" margin-left : 20px " @click =" generateQRCode" >扫码下载 </el-button >
70
70
<el-button style =" margin-left : 20px " @click =" getTj" >链接信息统计</el-button >
71
71
</p >
72
72
</div >
Original file line number Diff line number Diff line change 53
53
cow :
54
54
ec :
55
55
fc :
56
- fj : 30
56
+ fj :
57
57
iz : 20
58
58
le : 2879
59
59
lz : 20
@@ -67,12 +67,12 @@ cache:
67
67
68
68
# httpClient静态代理服务器配置(外网代理)
69
69
proxy :
70
- - panTypes : pgd,pdb
71
- type : http # 支持http/socks4/socks5
72
- host : 127.0.0.1
73
- port : 7890
74
- username :
75
- password :
70
+ # - panTypes: pgd,pdb,pod
71
+ # type: http # 支持http/socks4/socks5
72
+ # host: 127.0.0.1
73
+ # port: 7890
74
+ # username:
75
+ # password:
76
76
77
77
78
78
# 代理池配置
You can’t perform that action at this time.
0 commit comments