修复音乐文件获取为空的问题

This commit is contained in:
2021-12-28 14:31:45 +08:00
parent 8ef33f382e
commit 006fb8c836
4 changed files with 8 additions and 5 deletions

View File

@@ -66,11 +66,11 @@ public class BTDownloadManager implements ApplicationContextAware {
}
}
private String getDmhyUrl(BangumiItem item){
String dmhyUrl = "http://share.dmhy.org/topics/rss/page/1/rss.xml?keyword=%s%s%s&order=date-desc";
String dmhyUrl = "http://share.dmhy.org/topics/rss/page/1/rss.xml?keyword=%s%s&order=date-desc";
dmhyUrl = String.format(dmhyUrl,
item.getTitlekey().replace(" ", "+"),
"-1".equals(item.getCategories()) ? "" : String.format("&sort_id=%s", item.getCategories()),
"-1".equals(item.getAuthor()) ? "" : String.format("&team_id=%s", item.getAuthor()));
"-1".equals(item.getCategories()) ? "" : String.format("&sort_id=%s", item.getCategories())
);
return dmhyUrl;
}
private String getRSSUrl(BangumiItem item) {