update:触发搜刮器后更新jellyfin元素

This commit is contained in:
2022-07-20 14:33:21 +08:00
parent 1045e761c9
commit ca06eed516
3 changed files with 11 additions and 0 deletions

View File

@@ -64,6 +64,9 @@ 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());

View File

@@ -279,6 +279,11 @@ 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) {