添加更多BT日志打印

修复!刷BT指令无效的BUG
BT下载支持过滤Enable字段
This commit is contained in:
yutou
2021-05-20 16:11:26 +08:00
parent 09d2163af3
commit 5cf6fc3cd5
6 changed files with 94 additions and 7 deletions

View File

@@ -44,6 +44,9 @@ public class BTDownloadManager implements ApplicationContextAware {
AnimationData data = new AnimationData();
Log.i("BT","启动BT检测总数:"+list.size());
for (BangumiItem item : list) {
if(item.getEnable()==0){
continue;
}
item.setAuthor(data.nameToValue(item.getAuthor(), true) + "");
item.setCategories(data.nameToValue(item.getCategories(), false) + "");
String url = getRSSUrl(item);
@@ -92,7 +95,11 @@ public class BTDownloadManager implements ApplicationContextAware {
} else {
onSend(null, item);
}
}else{
Log.i("BT","添加到下载器失败:"+item.getString("title"));
}
}else{
Log.i("BT","已下载过:"+item.getString("title"));
}
}
}else{

View File

@@ -42,7 +42,7 @@ public class QQBotManager {
private final static String QQ_AUDIO = "!语音";
private final static String QQ_AUDIO_OPEN_LAMP = "!开灯";
private final static String QQ_AUDIO_OPEN_AIR = "!开空调";
private final static String QQ_BT_RELOAD = "!刷BT";
private final static String QQ_BT_RELOAD = "!刷bt";
private final static String QQ_TOOLS_IDEA = "!idea";
private final static String QQ_TOOLS_IDEA_FILE = "!idea>";
}
@@ -227,6 +227,7 @@ public class QQBotManager {
private void myGroup(String msg) {
StringBuilder builder;
msg = msg.replace("", "!").toLowerCase();
Log.i("QQBot","command = "+msg);
switch (msg) {
case QQCommands.QQ_OPEN_PC:
RedisTools.Consumer.system("openPC", null);