lvzhiqiang 3 年之前
父节点
当前提交
6a668642a9

+ 16 - 0
src/main/java/top/lvzhiqiang/controller/CrawlerController.java

@@ -137,4 +137,20 @@ public class CrawlerController {
         crawlerService.jsoupIkoaMovie4VideoInfo(bitrate);
         return "success";
     }
+
+    /**
+     * findIkoaMovie4VideoInfo
+     *
+     * @author lvzhiqiang
+     * 2022/10/11 14:31
+     */
+    @RequestMapping("/findIkoaMovie4VideoInfo")
+    @ResponseBody
+    public String findIkoaMovie4VideoInfo(String bitrate, String order) throws Exception {
+        if (StringUtils.isEmpty(bitrate)) {
+            throw new ParameterException("bitrate不能为空");
+        }
+
+        return crawlerService.findIkoaMovie4VideoInfo(bitrate, order);
+    }
 }

+ 2 - 0
src/main/java/top/lvzhiqiang/service/CrawlerService.java

@@ -45,4 +45,6 @@ public interface CrawlerService {
     String findIkoaMovieDownloadLog(String keyword, Integer pic, String orderField, String order, String crudT) throws Exception;
 
     JSONObject jsoupIkoaMovieDownloadLog(Integer status, Integer isDel, Integer ignoreRetryCount) throws Exception;
+
+    String findIkoaMovie4VideoInfo(String bitrate, String order);
 }