| | |
| | | package com.hxh.spring.test.video; |
| | | |
| | | |
| | | import com.yeshi.buwan.job.video.MogoTVVideoUpdate; |
| | | import com.yeshi.buwan.job.video.TencentVideoUpdate; |
| | | import com.yeshi.buwan.mogotv.entity.MogoTVClipInfo; |
| | | import com.yeshi.buwan.service.inter.juhe.InternetSearchVideoService; |
| | | import com.yeshi.buwan.service.inter.juhe.MogoTVService; |
| | | import com.yeshi.buwan.service.inter.juhe.TencentVideoService; |
| | | import com.yeshi.buwan.tencent.entity.TencentCoverInfo; |
| | | import com.yeshi.buwan.videos.tencent.entity.TencentCoverInfo; |
| | | import org.json.JSONObject; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.test.context.ContextConfiguration; |
| | |
| | | } |
| | | |
| | | @Test |
| | | public void test3() { |
| | | try { |
| | | JSONObject data = new JSONObject(); |
| | | data.put("url", "https://v.qq.com/channel/movie?_all=1&channel=movie&charge=4&listpage=1&sort=18"); |
| | | for (int p = 1; p < 20; p++) { |
| | | data.put("page", p); |
| | | tencentVideoUpdate.updateLatestVideoByWebUrl(data.toString()); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @Test |
| | | public void addToSearch() { |
| | | List<TencentCoverInfo> list = tencentVideoService.list("动漫", 1, 10); |
| | | for (TencentCoverInfo info : list) { |