fix:修复临时rss没有标题的问题

This commit is contained in:
Yutousama 2022-07-16 21:08:55 +08:00
parent 238efb7a40
commit ebe876fcfa

View File

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