admin
2021-07-30 19533a17aa55fafc70d0a385928e785cb50e1ebc
src/main/java/com/yeshi/buwan/mogotv/MogoTVUtil.java
@@ -59,14 +59,14 @@
        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));