| | |
| | | return detail; |
| | | } |
| | | |
| | | public VideoInfo getVideoInfo(InternetSearchVideo internetSearchVideo) throws Exception { |
| | | public VideoInfo getVideoInfo(InternetSearchVideo internetSearchVideo, int pageSize) throws Exception { |
| | | YouKuSearchVideoMap map = youKuService.selectByVideoId(internetSearchVideo.getId()); |
| | | if (map == null) { |
| | | throw new Exception("视频源不存在"); |
| | | } |
| | | |
| | | YouKuShowDetail showDetail = youKuService.getSimpleShowDetail(map.getShowId()); |
| | | showDetail.setVideoList(youKuService.getVideoList(showDetail.getId(), 1, 100)); |
| | | showDetail.setVideoList(youKuService.getVideoList(showDetail.getId(), 1, pageSize)); |
| | | VideoInfo info = VideoInfoFactory.create(internetSearchVideo); |
| | | info.setIntroduction(showDetail.getDescription()); |
| | | info.setVideoDetailList(YouKuUtil.convertToDetail(showDetail.getVideoList())); |