| | |
| | | return detail; |
| | | } |
| | | |
| | | public VideoInfo getVideoInfo(InternetSearchVideo internetSearchVideo) throws Exception { |
| | | public VideoInfo getVideoInfo(InternetSearchVideo internetSearchVideo, Integer pageSize) throws Exception { |
| | | TencentSearchVideoMap map = tencentVideoService.selectMapByVideoId(internetSearchVideo.getId()); |
| | | if (map == null) { |
| | | throw new Exception("视频源不存在"); |
| | | } |
| | | |
| | | TencentCoverInfo showDetail = tencentVideoService.getSimpleCoverDetail(map.getCoverId()); |
| | | showDetail.setVideoList(tencentVideoService.getVideoList(showDetail.getId(), 1, 100)); |
| | | showDetail.setVideoList(tencentVideoService.getVideoList(showDetail.getId(), 1, pageSize)); |
| | | VideoInfo info = VideoInfoFactory.create(internetSearchVideo); |
| | | info.setIntroduction(showDetail.getDescription()); |
| | | info.setVideoDetailList(convertToDetail(showDetail.getVideoList(), showDetail)); |