| | |
| | | List<Long> resourceList = videoResouceUtil.getAvailableResourceIds(platform, 0); |
| | | List<HomeType> list1 = homeTypeService.getHomeType(detailsystemid, resourceList, |
| | | CacheUtil.getMD5Long(resourceList),10,309); |
| | | List<HomeType> list = new ArrayList<HomeType>(); |
| | | List<HomeType> list = new ArrayList<>(); |
| | | for (HomeType ht : list1) |
| | | list.add(ht); |
| | | |
| | |
| | | DetailSystem detailSystem = systemService.getDetailSystemByPackage(packageName); |
| | | |
| | | List<SuperVideoType> clist = classService.getSuperVideoTypeList(detailSystem.getId()); |
| | | List<SuperVideoType> list = new ArrayList<SuperVideoType>(); |
| | | List<SuperVideoType> list = new ArrayList<>(); |
| | | list.addAll(clist); |
| | | |
| | | List<VideoType> typelist = new ArrayList<VideoType>(); |
| | | List<VideoType> typelist = new ArrayList<>(); |
| | | for (SuperVideoType sv : list) { |
| | | if (!StringUtil.isNullOrEmpty(sv.getPicture())) { |
| | | sv.getType().setIcon(sv.getPicture()); |
| | |
| | | List<VideoType> typeList = getFirstType(pid); |
| | | JSONArray data = new JSONArray(); |
| | | for (VideoType vt : typeList) { |
| | | List<VideoInfo> list = new ArrayList<VideoInfo>(); |
| | | List<VideoInfo> list = new ArrayList<>(); |
| | | if (StringUtil.isNullOrEmpty(vt.getCategoryType()) || "genre".equalsIgnoreCase(vt.getCategoryType())) {// 按分类检索数据 |
| | | Long startTime = System.currentTimeMillis(); |
| | | List<VideoInfo> list1 = classService.getTypeVideoList(vt.getId() + "", detailSystem, 1, 20, 2, |
| | | resourceList, CacheUtil.getMD5Long(resourceList)); |
| | | list = new ArrayList<VideoInfo>(); |
| | | list = new ArrayList<>(); |
| | | if (list1 != null) |
| | | for (VideoInfo info : list1) |
| | | list.add(info); |
| | |
| | | } |
| | | |
| | | private List<VideoType> getFirstType(String parentId) { |
| | | List<VideoType> list = new ArrayList<VideoType>(); |
| | | List<VideoType> list = new ArrayList<>(); |
| | | |
| | | if ("150".equalsIgnoreCase(parentId) || "151".equalsIgnoreCase(parentId) || "152".equalsIgnoreCase(parentId) |
| | | || "153".equalsIgnoreCase(parentId)) { |
| | |
| | | |
| | | } else { |
| | | List<VideoType> clist = classService.getFirstTypeList(parentId); |
| | | list = new ArrayList<VideoType>(); |
| | | list = new ArrayList<>(); |
| | | if (clist != null) |
| | | for (VideoType vt : clist) { |
| | | vt.setCategoryType("genre"); |
| | |
| | | } |
| | | |
| | | public HomeType convertHomeVideoList(HomeType type) { |
| | | List<VideoInfo> vlist = new ArrayList<VideoInfo>(); |
| | | List<VideoInfo> vlist = new ArrayList<>(); |
| | | List<HomeVideo> list = type.getHomeVideoList(); |
| | | if (list != null) |
| | | for (HomeVideo hv : list) { |
| | |
| | | |
| | | List<HomeVideo> homeVideoList = homeTypeService.getVideoByTypes(type, pageIndex, detailSystem); |
| | | |
| | | List<VideoInfo> list = new ArrayList<VideoInfo>(); |
| | | List<VideoInfo> list = new ArrayList<>(); |
| | | for (int i = 0; i < homeVideoList.size(); i++) { |
| | | HomeVideo hv = (HomeVideo) homeVideoList.get(i); |
| | | if (detailSystem.getPackageName().contains("doudou")) { |
| | |
| | | |
| | | List<RecommendAd> list = adService.getRecommendAdList(detailSystem.getId()); |
| | | if (list == null) |
| | | list = new ArrayList<RecommendAd>(); |
| | | list = new ArrayList<>(); |
| | | JSONObject object = new JSONObject(); |
| | | |
| | | JSONArray array = new JSONArray(); |
| | |
| | | |
| | | List<Long> resourceList = videoResouceUtil.getAvailableResourceIds(platform, Integer.parseInt(version)); |
| | | |
| | | VideoInfo info = (videoDeailUtil.getVideoInfo(videoId, resourceId, resourceList, |
| | | VideoInfo info = (videoDeailUtil.getVideoInfo(null,videoId, resourceId, resourceList, |
| | | CacheUtil.getMD5Long(resourceList))); |
| | | |
| | | List<VideoType> typeList = classService.getVideoTypeList(info.getId()); |
| | |
| | | } |
| | | |
| | | public List<HomeVideo> getZhiBoVideoList() throws Exception { |
| | | List<HomeVideo> list = new ArrayList<HomeVideo>(); |
| | | List<HomeVideo> list = new ArrayList<>(); |
| | | String result = get("http://www.kktv1.com/CDN/output/M/3/I/10002002/P/start-0_offset-6_platform-2/json.js"); |
| | | JSONObject object = JSONObject.fromObject(result); |
| | | JSONArray array = object.optJSONArray("roomList"); |