Compare commits
No commits in common. "ca06eed5162783fb3347a410ad4cc738455cfce8" and "584779cc130d8c10b4e03674b6c1efae7112cf0e" have entirely different histories.
ca06eed516
...
584779cc13
@ -1,7 +1,6 @@
|
||||
package com.yutou.nas.Controllers;
|
||||
|
||||
import com.yutou.nas.utils.AppTools;
|
||||
import com.yutou.nas.utils.JellyfinAPIManager;
|
||||
import com.yutou.nas.utils.QQBotManager;
|
||||
import com.yutou.nas.utils.StringUtils;
|
||||
import org.springframework.stereotype.Controller;
|
||||
@ -16,7 +15,6 @@ public class JellyfinController {
|
||||
if (!StringUtils.isEmpty(Name) && !StringUtils.isEmpty(Date)) {
|
||||
QQBotManager.getInstance().sendMessage(734332887L, " 新增:" + Name);
|
||||
AppTools.exec("/home/yutou/public/servier/tinyMediaManager/tinyMediaManager tvshow -u --scrapeUnscraped", null, false, true);
|
||||
new JellyfinAPIManager().refresh();
|
||||
}
|
||||
return "ok";
|
||||
}
|
||||
@ -25,7 +23,6 @@ public class JellyfinController {
|
||||
@RequestMapping("/jellyfin/updateMeta")
|
||||
public String updateMeta() {
|
||||
AppTools.exec("/home/yutou/public/servier/tinyMediaManager/tinyMediaManager tvshow -u --scrapeUnscraped", null, false, true);
|
||||
new JellyfinAPIManager().refresh();
|
||||
return "ok";
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ import com.yutou.nas.Controllers.UpdateIp;
|
||||
public class AnimRssManager {
|
||||
public static void scan() {
|
||||
String tmp=HttpTools.https_get("https://tools.yutou233.cn/anim/rss/list.do?type=-1&token=zIrsh9TUZP2lfRW753PannG49E7VJvor",null);
|
||||
System.out.println("tmp = " + tmp);
|
||||
if(tmp==null){
|
||||
return;
|
||||
}
|
||||
|
@ -64,9 +64,6 @@ public class HttpTools {
|
||||
connection.addRequestProperty(key, headers.get(key));
|
||||
}
|
||||
}
|
||||
if(body==null){
|
||||
body="".getBytes();
|
||||
}
|
||||
connection.setDoOutput(true);
|
||||
connection.setDoInput(true);
|
||||
connection.addRequestProperty("User-Agent", getUa());
|
||||
|
@ -279,11 +279,6 @@ public class JellyfinAPIManager {
|
||||
}
|
||||
return array;
|
||||
}
|
||||
public void refresh(){
|
||||
String url="http://192.168.31.88:8096/Items/28e774baf8f2fd279e7d58da9890a7d2/Refresh?Recursive=true&ImageRefreshMode=FullRefresh&MetadataRefreshMode=FullRefresh&ReplaceAllImages=false&ReplaceAllMetadata=true";
|
||||
String tmp=HttpTools.http_post(url,null,1,getHeader());
|
||||
System.out.println(tmp);
|
||||
}
|
||||
|
||||
public void init(File path,String id) {
|
||||
if (id != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user