From b783224077522b542a5f97ca727e9e7eb02f1d2a Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 11 Jul 2022 17:09:38 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=96=B0=E5=A2=9Ejellyfin=E6=90=9C?= =?UTF-8?q?=E5=88=AE=E5=8F=8A=E6=8E=A8=E9=80=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yutou/nas/Controllers/JellyfinController.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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"; } }