From 16ec39f3ad46446f3a4154b2844201ca05142bc1 Mon Sep 17 00:00:00 2001
From: wushuo <2725730722@qq.com>
Date: Tue, 3 Dec 2024 23:30:20 +0800
Subject: [PATCH] =?UTF-8?q?=E7=8E=B0=E5=9C=A8=E5=8F=AF=E4=BB=A5=E8=87=AA?=
=?UTF-8?q?=E5=8A=A8=E5=90=AF=E7=94=A8=20=E8=87=AA=E5=AE=9A=E4=B9=89?=
=?UTF-8?q?=E9=9B=86=E6=95=B0=E8=8E=B7=E5=8F=96=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
UPDATE.md | 4 +---
pom.xml | 2 +-
src/main/java/ani/rss/util/AniUtil.java | 14 +++++++++++---
3 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/UPDATE.md b/UPDATE.md
index 8ca16da..7e67803 100644
--- a/UPDATE.md
+++ b/UPDATE.md
@@ -1,3 +1 @@
-~~修复mikan出现问题后无法下载种子导致一直发送通知的问题~~
-
-经排查是极空间系统的自动更新出现bug, 导致docker挂载出现问题
+现在可以自动启用 自定义集数获取规则
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 1c93dde..9db1926 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
ani.rss
ani-rss
- 1.1.205
+ 1.1.206
11
diff --git a/src/main/java/ani/rss/util/AniUtil.java b/src/main/java/ani/rss/util/AniUtil.java
index abc71a9..5daac0b 100644
--- a/src/main/java/ani/rss/util/AniUtil.java
+++ b/src/main/java/ani/rss/util/AniUtil.java
@@ -259,11 +259,19 @@ public static Ani getAni(String url, String text, String type, String bgmUrl) {
if (ani.getOva()) {
return ani;
}
+
+ String s = HttpReq.get(url, true)
+ .thenFunction(HttpResponse::body);
+ List- items = ItemsUtil.getItems(ani, s, new Item());
+ if (items.size() == 1) {
+ // 自定义集数获取规则
+ if (items.get(0).getEpisode() == 1080) {
+ ani.setCustomEpisode(true);
+ }
+ }
+
// 自动推断剧集偏移
if (config.getOffset()) {
- String s = HttpReq.get(url, true)
- .thenFunction(HttpResponse::body);
- List
- items = ItemsUtil.getItems(ani, s, new Item());
if (items.isEmpty()) {
return ani;
}