Merge remote-tracking branch 'origin/master'

This commit is contained in:
Yutousama 2023-03-02 23:30:09 +08:00
commit f50dcb2244
2 changed files with 6 additions and 5 deletions

View File

@ -36,7 +36,7 @@ public class ApplicationInit implements ApplicationRunner {
if (time.equals(oldTime)) { if (time.equals(oldTime)) {
return; return;
} }
float power = Tools.getSystemUPSPower(); /*float power = Tools.getSystemUPSPower();
if (power > 0) { if (power > 0) {
if (power == 100) { if (power == 100) {
AppTools.exec("wakeonlan 00:F0:D2:D0:6B:B5", null, false, true); AppTools.exec("wakeonlan 00:F0:D2:D0:6B:B5", null, false, true);
@ -53,14 +53,14 @@ public class ApplicationInit implements ApplicationRunner {
Log.i("UPS电池低于30%,即将关机"); Log.i("UPS电池低于30%,即将关机");
QQBotManager.getInstance().sendMessage("UPS电池低于30%,即将关机"); QQBotManager.getInstance().sendMessage("UPS电池低于30%,即将关机");
} }
} }*/
oldTime = time; oldTime = time;
switch (time) { switch (time) {
case "00:00": case "00:00":
musicTools.scanMusic(); //musicTools.scanMusic();
break; break;
case "01:00": case "01:00":
DepotManager.scan(); //DepotManager.scan();
break; break;
} }

View File

@ -144,7 +144,8 @@ public class BTDownloadManager {
} }
}, false, true); }, false, true);
}*/ }*/
AppTools.exec("/home/yutou/public/servier/tinyMediaManager/tinyMediaManager tvshow -u --scrapeUnscraped", null, false, true); //AppTools.exec("/home/yutou/public/servier/tinyMediaManager/tinyMediaManager tvshow -u --scrapeUnscraped", null, false, true);
AppTools.exec("/home/yutou/public/servier/tinyMediaManager/tinyMediaManager tvshow -u -w", null, false, true);
} }
public static String getTorrentFileHash(String magnet) { public static String getTorrentFileHash(String magnet) {