update RedisTools

update BTDownload
This commit is contained in:
2022-10-13 21:26:08 +08:00
parent 32b53a6a16
commit 0a15594184
3 changed files with 10 additions and 3 deletions

View File

@@ -106,10 +106,12 @@ public class BTDownloadManager {
}
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;
if(hash!=null){
String map = RedisTools.getHashMap("rss", hash);
System.out.println("map = " + map);
JSONObject item=JSON.parseObject(map);
if (item.containsKey("thumbnail")) {
onSend(item.getString("thumbnail"), item,item.getJSONObject("enclosure").getString("link"));