admin
2021-04-08 d7a3014c38dbb1061cba70e7dbb49d58831e6399
src/test/java/com/hxh/spring/test/Iqiyi2.java
@@ -37,9 +37,9 @@
import java.util.Scanner;
//
@RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试
@ContextConfiguration(locations = {"classpath:spring.xml"})
@WebAppConfiguration
//@RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试
//@ContextConfiguration(locations = {"classpath:spring.xml"})
//@WebAppConfiguration
public class Iqiyi2 {
    private final static Logger errorLogger = LoggerFactory.getLogger("errorLogger");
@@ -118,7 +118,7 @@
//            iqiyi2Service.addToVideoInfo(album2);
//        }
        Long qikuID = 8354256491713801L;
        Long qikuID = 6376917677133701L;
        IqiyiAlbum2 album2 = iqiyi2Service.selectAlbumById(qikuID);
        if (album2 != null) {
@@ -145,7 +145,7 @@
    @Test
    public void test6() {
        try {
            iqiyi2VideoUpdate.updateVideoByPlayerUrl("https://www.iqiyi.com/v_wy9ak8ezio.html?vfrm=pcw_dianshiju&vfrmblk=B&vfrmrst=fcs_2_p3");
            iqiyi2VideoUpdate.updateVideoByPlayerUrl("https://www.iqiyi.com/v_1nwrspklijs.html?vfrm=pcw_dianshiju&vfrmblk=B&vfrmrst=fcs_2_p1");
        } catch (Exception e) {
            e.printStackTrace();
        }
@@ -273,7 +273,7 @@
    @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<>();
@@ -291,4 +291,11 @@
    }
    @Test
    public void getDetail() {
        IqiYiNewAPI.getAlbumOrVideoDetail(524533200L);
    }
}