From 25472378c77acf837c34383c3aef72d53abe5b73 Mon Sep 17 00:00:00 2001 From: qlql765 <108382776+qlql765@users.noreply.github.com> Date: Mon, 27 Nov 2023 09:56:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8C=B9=E9=85=8D=E9=98=BF?= =?UTF-8?q?=E9=87=8C=E6=96=B0=E5=9F=9F=E5=90=8DAlipan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/github/catvod/spider/Ali.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/github/catvod/spider/Ali.java b/app/src/main/java/com/github/catvod/spider/Ali.java index 59246298..611cde69 100644 --- a/app/src/main/java/com/github/catvod/spider/Ali.java +++ b/app/src/main/java/com/github/catvod/spider/Ali.java @@ -21,7 +21,7 @@ import java.util.regex.Pattern; */ public class Ali extends Spider { - public static final Pattern pattern = Pattern.compile("www.aliyundrive.com/s/([^/]+)(/folder/([^/]+))?"); + public static final Pattern pattern = Pattern.compile("(www.aliyundrive.com|www.alipan.com)/s/([^/]+)(/folder/([^/]+))?"); @Override public void init(Context context, String extend) { @@ -41,8 +41,8 @@ public class Ali extends Spider { } private Vod parseVod(Matcher matcher, String id) { - String shareId = matcher.group(1); - String fileId = matcher.groupCount() == 3 ? matcher.group(3) : ""; + String shareId = matcher.group(2); + String fileId = matcher.groupCount() == 4 ? matcher.group(4) : ""; return AliYun.get().getVod(id, shareId, fileId); } @@ -84,4 +84,4 @@ public class Ali extends Spider { if ("token".equals(type)) return AliYun.get().getToken(); return null; } -} \ No newline at end of file +}