| | |
| | | import com.yeshi.buwan.service.inter.juhe.Iqiyi2Service; |
| | | import com.yeshi.buwan.util.StringUtil; |
| | | import com.yeshi.buwan.util.TimeUtil; |
| | | import com.yeshi.buwan.util.log.VideoLogFactory; |
| | | import com.yeshi.buwan.util.mq.CMQManager; |
| | | import com.yeshi.buwan.util.video.VideoConstant; |
| | | import org.jsoup.Jsoup; |
| | | import org.jsoup.nodes.Document; |
| | | import org.jsoup.nodes.Element; |
| | | import org.jsoup.select.Elements; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Component |
| | | public class IqiyiUtil2 { |
| | | |
| | | private final Logger logger = LoggerFactory.getLogger("iqiyiVideoUpdate"); |
| | | |
| | | public final static int PLAY_NONE = 0;// 不能播放 |
| | | public final static int PLAY_HTML = 1;// 跳转移动端网页播放 |
| | | public final static int PLAY_SWF = 2;// 嵌套网页播放 |
| | |
| | | iqiyi2Service.deleteByAid(album.getId()); |
| | | continue; |
| | | } |
| | | |
| | | |
| | | logger.info(VideoLogFactory.createAddAlbumLog(album)); |
| | | |
| | | if (album.getTvQipuIds() != null && album.getTvQipuIds().size() > 0) { |
| | | //查询最新的一集是否缓存 |
| | | boolean needSaveVideos = true; |