From ebe876fcfa5029f69460abb6dd4a81955398bd1e Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sat, 16 Jul 2022 21:08:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=B8=B4=E6=97=B6rss?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=A0=87=E9=A2=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/nas/utils/AnimRssManager.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yutou/nas/utils/AnimRssManager.java b/src/main/java/com/yutou/nas/utils/AnimRssManager.java index 3d9290d..e80f580 100644 --- a/src/main/java/com/yutou/nas/utils/AnimRssManager.java +++ b/src/main/java/com/yutou/nas/utils/AnimRssManager.java @@ -17,15 +17,16 @@ public class AnimRssManager { JSONArray data=json.getJSONArray("data"); for (Object datum : data) { String url= ((JSONObject) datum).getString("title"); - download(url); + String title= ((JSONObject) datum).getString("titlekey"); + download(title,url); } } } - private static void download(String url) { + private static void download(String title,String url) { JSONObject rss=RssXMLtoJson.toJSON(url); if (rss != null && "ok".equals(rss.getString("status"))) { - BTDownloadManager.download(rss.getJSONObject("feed").getString("title"), rss); + BTDownloadManager.download(title, rss); } }