update
This commit is contained in:
parent
ed70cea2a6
commit
c771f17140
@ -118,16 +118,15 @@ public class BTDownloadManager {
|
|||||||
|
|
||||||
public synchronized static void done(String path, String filename, String hash1, String hash2, String tid) {
|
public synchronized static void done(String path, String filename, String hash1, String hash2, String tid) {
|
||||||
//grep(path,filename);
|
//grep(path,filename);
|
||||||
System.out.println("path = " + path + ", filename = " + filename + ", hash1 = " + hash1 + ", hash2 = " + hash2 + ", tid = " + tid);
|
|
||||||
String hash = StringUtils.isEmpty(hash1) ? StringUtils.isEmpty(hash2) ? null : hash2 : hash1;
|
String hash = StringUtils.isEmpty(hash1) ? StringUtils.isEmpty(hash2) ? null : hash2 : hash1;
|
||||||
if (hash != null) {
|
if (hash != null) {
|
||||||
String map = RedisTools.getHashMap("rss", hash);
|
String map = RedisTools.getHashMap("rss", hash);
|
||||||
System.out.println("map = " + map);
|
|
||||||
JSONObject item = JSON.parseObject(map);
|
JSONObject item = JSON.parseObject(map);
|
||||||
|
String text="title"+item.getString("title")+"\n"+item.getString("link");
|
||||||
if (item.containsKey("thumbnail")) {
|
if (item.containsKey("thumbnail")) {
|
||||||
onSend(item.getString("thumbnail"), item, item.getJSONObject("enclosure").getString("link"));
|
QQBotManager.getInstance().sendMessage(item.getString("title"));
|
||||||
} else {
|
} else {
|
||||||
onSend(null, item, item.getJSONObject("enclosure").getString("link"));
|
QQBotManager.getInstance().sendMessage(item.getString("thumbnail"),item.getString("title"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user