添加更多BT日志打印
修复!刷BT指令无效的BUG BT下载支持过滤Enable字段
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user