admin
2021-04-08 d7a3014c38dbb1061cba70e7dbb49d58831e6399
src/main/java/com/yeshi/buwan/sohu/SoHuUtil.java
@@ -49,21 +49,6 @@
   @Resource
   private VideoResourceDao videoResourceDao;
   public SoHuVideoDao getSoHuVideoDao() {
      return soHuVideoDao;
   }
   public void setSoHuVideoDao(SoHuVideoDao soHuVideoDao) {
      this.soHuVideoDao = soHuVideoDao;
   }
   public SoHuService getSoHuService() {
      return soHuService;
   }
   public void setSoHuService(SoHuService soHuService) {
      this.soHuService = soHuService;
   }
   public static List<RootCategory> getCategory() {
      List<RootCategory> list = SoHuApi.rootCategoryList();
@@ -84,7 +69,7 @@
   }
   public static List<Integer> getSecondCategory(int scode) {
      List<Integer> list = new ArrayList<Integer>();
      List<Integer> list = new ArrayList<>();
      switch (scode) {
      // 电视剧
@@ -581,7 +566,7 @@
   @SuppressWarnings("unchecked")
   public void parseAll() {
      List<RootCategory> list =new ArrayList<RootCategory>(); //SoHuApi.rootCategoryList();
      List<RootCategory> list =new ArrayList<>(); //SoHuApi.rootCategoryList();
      RootCategory rc = new RootCategory();
      rc.setCateId(9004);
      list.add(rc);
@@ -632,7 +617,7 @@
                              sa.setTip(svc.getTip());
                              String c = SoHuApi.getVideoList(sa.getAid(), 1, 20).get("count") + "";
                              if (!StringUtil.isNullOrEmpty(c)) {
                                 List<SoHuVideo> vlist = new ArrayList<SoHuVideo>();
                                 List<SoHuVideo> vlist = new ArrayList<>();
                                 for (int p = 1; p < Integer.parseInt(c) / 50 + 2; p++) {
                                    List<SoHuVideo> videoList = (List<SoHuVideo>) SoHuApi
                                          .getVideoList(sa.getAid(), p, 50).get("data");