fix:修复动漫花园订阅地址非https的问题
update:手动rss下载,同时跳过下一次自动订阅下载
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.yutou.nas.Controllers;
|
||||
|
||||
import com.yutou.nas.Services.IBangumiService;
|
||||
import com.yutou.nas.utils.AnimRssManager;
|
||||
import com.yutou.nas.utils.BTDownloadManager;
|
||||
import com.yutou.nas.utils.DmhyRssDownloadManager;
|
||||
@@ -8,8 +9,12 @@ import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Controller
|
||||
public class BTDownloadController {
|
||||
@Resource
|
||||
IBangumiService bangumiService;
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping("/bt/down.do")
|
||||
@@ -25,4 +30,11 @@ public class BTDownloadController {
|
||||
BTDownloadManager.done(id,name);
|
||||
return "ok";
|
||||
}
|
||||
@ResponseBody
|
||||
@RequestMapping("/bt/download.do")
|
||||
public String download(int id,boolean isDownloadNext,String url){
|
||||
Log.i("跳过下载","手动下载 id = " + id + ", isDownloadNext = " + isDownloadNext + ", url = " + url);
|
||||
bangumiService.download(id,isDownloadNext,url);
|
||||
return "1";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user