diff --git a/src/main/java/com/yutou/nas/utils/ApplicationInit.java b/src/main/java/com/yutou/nas/utils/ApplicationInit.java index bfad904..1ea52cd 100644 --- a/src/main/java/com/yutou/nas/utils/ApplicationInit.java +++ b/src/main/java/com/yutou/nas/utils/ApplicationInit.java @@ -36,7 +36,7 @@ public class ApplicationInit implements ApplicationRunner { if (time.equals(oldTime)) { return; } - float power = Tools.getSystemUPSPower(); + /*float power = Tools.getSystemUPSPower(); if (power > 0) { if (power == 100) { 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%,即将关机"); QQBotManager.getInstance().sendMessage("UPS电池低于30%,即将关机"); } - } + }*/ oldTime = time; switch (time) { case "00:00": - musicTools.scanMusic(); + //musicTools.scanMusic(); break; case "01:00": - DepotManager.scan(); + //DepotManager.scan(); break; } diff --git a/src/main/java/com/yutou/nas/utils/BTDownloadManager.java b/src/main/java/com/yutou/nas/utils/BTDownloadManager.java index 53cf679..9bb8638 100644 --- a/src/main/java/com/yutou/nas/utils/BTDownloadManager.java +++ b/src/main/java/com/yutou/nas/utils/BTDownloadManager.java @@ -144,7 +144,8 @@ public class BTDownloadManager { } }, 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) {