fix:修复临时rss没有标题的问题
This commit is contained in:
parent
238efb7a40
commit
ebe876fcfa
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user