新增设置动画meta接口
This commit is contained in:
@@ -4,9 +4,11 @@ import com.alibaba.fastjson.JSONArray;
|
||||
import com.yutou.nas.utils.*;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
@Controller
|
||||
@@ -44,4 +46,10 @@ public class ToolsController {
|
||||
public JSONArray getAnimItems(){
|
||||
return new JellyfinAPIManager().getAnimPaths();
|
||||
}
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/tools/anim/set.do",method = RequestMethod.POST)
|
||||
public String setAnimMeta(String path,String id){
|
||||
new JellyfinAPIManager().init(new File(path),id);
|
||||
return "1";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user