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); } }