mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-17 04:43:02 +00:00
0.0 前端优化,302标识短链添加/d前缀
This commit is contained in:
@@ -132,8 +132,9 @@ public enum PanDomainTemplate {
|
||||
"https://www.kugou.com/mixsong/{shareKey}.html",
|
||||
MkgsTool.MkgTool.class),
|
||||
// https://kuwo.cn/play_detail/395500809
|
||||
// https://m.kuwo.cn/newh5app/play_detail/318448522
|
||||
MKWS("酷我音乐分享*",
|
||||
compile("https://kuwo\\.cn/play_detail/(?<KEY>.+)"),
|
||||
compile("https://(m\\.)?kuwo\\.cn/(newh5app/)?play_detail/(?<KEY>.+)"),
|
||||
"https://kuwo.cn/play_detail/{shareKey}",
|
||||
MkwTool.class),
|
||||
// https://music.migu.cn/v3/music/song/6326951FKBJ?channelId=001002H
|
||||
@@ -148,7 +149,7 @@ public enum PanDomainTemplate {
|
||||
// https://pan.huang1111.cn/s/xxx
|
||||
// 通用域名([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}
|
||||
CE("Cloudreve",
|
||||
compile("https://([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\.)+[a-zA-Z]{2,}(/s)?/(?<KEY>.+)"),
|
||||
compile("http(s)?://([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\.)+[a-zA-Z]{2,}(/s)?/(?<KEY>.+)"),
|
||||
"https://{any}/s/{shareKey}",
|
||||
CeTool.class),
|
||||
// 可道云自定义域名解析
|
||||
|
||||
@@ -138,7 +138,7 @@ public class ParserCreate {
|
||||
public String genPathSuffix() {
|
||||
|
||||
String path;
|
||||
if (panDomainTemplate == PanDomainTemplate.CE) {
|
||||
if (panDomainTemplate.ordinal() >= PanDomainTemplate.CE.ordinal()) {
|
||||
// 处理Cloudreve(ce)类: pan.huang1111.cn_s_wDz5TK _ -> /
|
||||
path = this.shareLinkInfo.getType() + "/"
|
||||
+ this.shareLinkInfo.getShareUrl()
|
||||
|
||||
@@ -13,6 +13,7 @@ import java.util.regex.Pattern;
|
||||
/**
|
||||
* 酷我音乐分享
|
||||
* <a href="https://kuwo.cn/play_detail/395500809">分享示例</a>
|
||||
* <a href="https://m.kuwo.cn/newh5app/play_detail/318448522">分享示例</a>
|
||||
*/
|
||||
public class MkwTool extends PanBase {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user