| | |
| | | return detail; |
| | | } |
| | | |
| | | public VideoInfo getVideoInfo(InternetSearchVideo internetSearchVideo) throws Exception { |
| | | public VideoInfo getVideoInfo(InternetSearchVideo internetSearchVideo,int pageSize) throws Exception { |
| | | MogoTVSearchVideoMap map = mogoTVService.selectMapByVideoId(internetSearchVideo.getId()); |
| | | if (map == null) { |
| | | throw new Exception("视频源不存在"); |
| | | } |
| | | |
| | | MogoTVClipInfo showDetail = mogoTVService.getSimpleClipDetail(map.getClipId()); |
| | | showDetail.setVideoList(mogoTVService.getVideoList(showDetail.getClipId(), 1, 100,"综艺".equalsIgnoreCase(showDetail.getFstlvlType())?false:true)); |
| | | showDetail.setVideoList(mogoTVService.getVideoList(showDetail.getClipId(), 1, pageSize,"综艺".equalsIgnoreCase(showDetail.getFstlvlType())?false:true)); |
| | | VideoInfo info = VideoInfoFactory.create(internetSearchVideo); |
| | | info.setIntroduction(showDetail.getStory()); |
| | | info.setVideoDetailList(MogoTVUtil.convertToDetail(showDetail.getVideoList(), showDetail)); |