| | |
| | | @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(); |
| | |
| | | } |
| | | |
| | | public static List<Integer> getSecondCategory(int scode) { |
| | | List<Integer> list = new ArrayList<Integer>(); |
| | | List<Integer> list = new ArrayList<>(); |
| | | |
| | | switch (scode) { |
| | | // 电视剧 |
| | |
| | | |
| | | @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); |
| | |
| | | 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"); |