diff --git a/src/main/java/com/yutou/nas/Controllers/JellyfinController.java b/src/main/java/com/yutou/nas/Controllers/JellyfinController.java index 2e5906c..74c0d3b 100644 --- a/src/main/java/com/yutou/nas/Controllers/JellyfinController.java +++ b/src/main/java/com/yutou/nas/Controllers/JellyfinController.java @@ -1,6 +1,8 @@ package com.yutou.nas.Controllers; +import com.yutou.nas.interfaces.ObjectInterface; import com.yutou.nas.utils.AppTools; +import com.yutou.nas.utils.Log; import com.yutou.nas.utils.QQBotManager; import com.yutou.nas.utils.StringUtils; import org.springframework.stereotype.Controller; @@ -14,7 +16,7 @@ public class JellyfinController { public String addItem(String Name, String Date) { if (!StringUtils.isEmpty(Name) && !StringUtils.isEmpty(Date)) { QQBotManager.getInstance().sendMessage(734332887L, Date + " 新增:" + Name); - AppTools.exec("/public/servier/tinyMediaManager/tinyMediaManager tvshow --scrapeUnscraped", null, false, false); + AppTools.exec("/public/servier/tinyMediaManager/tinyMediaManager tvshow --scrapeUnscraped", null, false, true); } return "ok"; } @@ -22,7 +24,13 @@ public class JellyfinController { @ResponseBody @RequestMapping("/jellyfin/updateMeta") public String updateMeta() { - AppTools.exec("/public/servier/tinyMediaManager/tinyMediaManager tvshow --scrapeUnscraped", null, false, false); + AppTools.exec("/public/servier/tinyMediaManager/tinyMediaManager tvshow --scrapeUnscraped", new ObjectInterface() { + @Override + public void out(String data) { + super.out(data); + Log.i("jellyfin",data); + } + }, false, true); return "ok"; } }