From 19533a17aa55fafc70d0a385928e785cb50e1ebc Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期五, 30 七月 2021 02:05:14 +0800
Subject: [PATCH] 爱奇艺视频更新

---
 src/test/java/com/hxh/spring/test/Iqiyi2.java |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/test/java/com/hxh/spring/test/Iqiyi2.java b/src/test/java/com/hxh/spring/test/Iqiyi2.java
index 16fbee6..cf86960 100644
--- a/src/test/java/com/hxh/spring/test/Iqiyi2.java
+++ b/src/test/java/com/hxh/spring/test/Iqiyi2.java
@@ -2,28 +2,22 @@
 
 import com.google.gson.Gson;
 import com.yeshi.buwan.dao.juhe.iqiyi.IqiyiAlbum2Dao;
-import com.yeshi.buwan.dao.juhe.iqiyi.VideoIqiyi2Dao;
 import com.yeshi.buwan.dao.juhe.iqiyi.VideoIqiyiDao;
 import com.yeshi.buwan.domain.ResourceVideo;
 import com.yeshi.buwan.domain.VideoInfo;
 import com.yeshi.buwan.domain.VideoResource;
-import com.yeshi.buwan.funtv.FunTVUtil2;
-import com.yeshi.buwan.funtv.entity.VideoFunTV2;
 import com.yeshi.buwan.iqiyi.IqiYiNewAPI;
 import com.yeshi.buwan.iqiyi.entity.IqiyiAlbum2;
 import com.yeshi.buwan.iqiyi.entity.VideoIqiyi;
-import com.yeshi.buwan.iqiyi.entity.VideoIqiyi2;
-import com.yeshi.buwan.iqiyi.util.IqiyiUtil;
 import com.yeshi.buwan.iqiyi.util.IqiyiUtil2;
 import com.yeshi.buwan.iqiyi.vo.IqiyiAlbumListResult;
-import com.yeshi.buwan.job.SMSJob;
 import com.yeshi.buwan.job.video.Iqiyi2VideoUpdate;
 import com.yeshi.buwan.query.Iqiyi2AlbumQuery;
 import com.yeshi.buwan.service.imp.CategoryVideoService;
 import com.yeshi.buwan.service.imp.ResourceVideoService;
 import com.yeshi.buwan.service.imp.VideoInfoService;
 import com.yeshi.buwan.service.inter.juhe.Iqiyi2Service;
-import com.yeshi.buwan.service.manager.SolrAlbumDataManager;
+import com.yeshi.buwan.service.manager.SolrAlbumVideoDataManager;
 import com.yeshi.buwan.util.*;
 import com.yeshi.buwan.util.mq.CMQManager;
 import net.sf.json.JSONArray;
@@ -124,7 +118,7 @@
 //            iqiyi2Service.addToVideoInfo(album2);
 //        }
 
-        Long qikuID = 242404801L;
+        Long qikuID = 6544570339302501L;
 
         IqiyiAlbum2 album2 = iqiyi2Service.selectAlbumById(qikuID);
         if (album2 != null) {
@@ -141,7 +135,7 @@
 
     @Test
     public void updateLatest() {
-        List<String> urlList = IqiyiUtil2.getAlbumUrlsFromUrl("https://list.iqiyi.com/www/2/15-------------11-1-1-iqiyi--.html?s_source=PCW_LC");
+        List<String> urlList = IqiyiUtil2.getAlbumUrlsFromUrl("https://www.iqiyi.com/v_u3d4t2dr7o.html?vfrm=pcw_dianshiju&vfrmblk=B&vfrmrst=fcs_2_p2");
         for (String url : urlList) {
             String aid = IqiYiNewAPI.getAidByUrl(url);
             iqiyiUtil2.syncByAid(Long.parseLong(aid));
@@ -151,7 +145,7 @@
     @Test
     public void test6() {
         try {
-            iqiyi2VideoUpdate.updateVideoByPlayerUrl("https://www.iqiyi.com/v_1wcatt2ykr4.html?vfrm=pcw_dianshiju&vfrmblk=F&vfrmrst=711219_dianshiju_tbrb_image1");
+            iqiyi2VideoUpdate.updateVideoByPlayerUrl("https://www.iqiyi.com/v_u3d4t2dr7o.html?vfrm=pcw_dianshiju&vfrmblk=B&vfrmrst=fcs_2_p2");
         } catch (Exception e) {
             e.printStackTrace();
         }
@@ -274,12 +268,12 @@
     private VideoInfoService videoInfoService;
 
     @Resource
-    private SolrAlbumDataManager solrDataManager;
+    private SolrAlbumVideoDataManager solrDataManager;
 
     @Test
     public void addResources() {
         try {
-            VideoInfo videoInfo = videoInfoService.getVideoInfo(8174476+"");
+            VideoInfo videoInfo = videoInfoService.getVideoInfo(8174476 + "");
             if (videoInfo != null) {
                 if ("1".equalsIgnoreCase(videoInfo.getShow())) {
                     List<VideoResource> resourceList = new ArrayList<>();
@@ -297,4 +291,11 @@
     }
 
 
+    @Test
+    public void getDetail() {
+        IqiYiNewAPI.getAlbumOrVideoDetail(524533200L);
+
+    }
+
+
 }

--
Gitblit v1.8.0