diff --git a/src/main/java/com/yutou/nas/NasApplication.java b/src/main/java/com/yutou/nas/NasApplication.java index 1d4605e..47167e6 100644 --- a/src/main/java/com/yutou/nas/NasApplication.java +++ b/src/main/java/com/yutou/nas/NasApplication.java @@ -12,7 +12,7 @@ import org.springframework.context.annotation.Import; @Import(DmhyRssDownloadManager.class) @SpringBootApplication public class NasApplication { - public static final String version = "1.2.17.2"; + public static final String version = "1.2.17.3"; public static void main(String[] args) { SpringApplication.run(NasApplication.class, args); diff --git a/src/main/java/com/yutou/nas/utils/BTDownloadManager.java b/src/main/java/com/yutou/nas/utils/BTDownloadManager.java index c79a32b..53cf679 100644 --- a/src/main/java/com/yutou/nas/utils/BTDownloadManager.java +++ b/src/main/java/com/yutou/nas/utils/BTDownloadManager.java @@ -117,13 +117,13 @@ public class BTDownloadManager { } public synchronized static void done(String path, String filename, String hash1, String hash2, String tid) { - //grep(path,filename); + grep(path,filename); String hash = StringUtils.isEmpty(hash1) ? StringUtils.isEmpty(hash2) ? null : hash2 : hash1; if (hash != null) { String map = RedisTools.getHashMap("rss", hash); JSONObject item = JSON.parseObject(map); - String text="添加到库:"+item.getString("title")+"\n大妈之家地址:"+item.getString("link"); - if (item.containsKey("thumbnail")) { + String text="添加到库:"+item.getString("title")+"\n动漫花园地址:"+item.getString("link"); + if (!item.containsKey("thumbnail")) { QQBotManager.getInstance().sendMessage(734332887,text); } else { QQBotManager.getInstance().sendMessage(734332887,item.getString("thumbnail"),text);