admin
2021-01-04 aa6ef62aef83e277d4171df1d9f0803f91738216
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.newvideo.controller.api;
 
import java.io.PrintWriter;
 
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
 
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
 
import com.newvideo.iqiyi.util.IqiyiUtil;
import com.newvideo.sohu.SoHuUtil;
import com.newvideo.youku.YouKuUtil;
 
@Controller
@RequestMapping("/videoparser")
public class VideoParserController {
    @Resource
    private IqiyiUtil iqiyiUtil;
    @Resource
    private SoHuUtil soHuUtil;
    @Resource
    private YouKuUtil youKuUtil;
 
    @RequestMapping(value = "/iqiyi", method = RequestMethod.GET)
    public void iqiyi(HttpServletRequest request, PrintWriter out) {
        iqiyiUtil.updateAll("");
    }
 
    @RequestMapping(value = "/soHu", method = RequestMethod.GET)
    public void soHu(HttpServletRequest request, PrintWriter out) {
        soHuUtil.parseAll();
    }
 
    @RequestMapping(value = "/youKu", method = RequestMethod.GET)
    public void youKu(HttpServletRequest request, PrintWriter out) {
        youKuUtil.startParseShow();
    }
 
    @RequestMapping(value = "/updateHomeVideoPic", method = RequestMethod.GET)
    public void updateHomeVideoPic(HttpServletRequest request, PrintWriter out) {
 
    }
 
    // 更新youku单个视频
    @RequestMapping(value = "/youKuSingleUpdate", method = RequestMethod.GET)
    public void youKuSingleUpdate(HttpServletRequest request, PrintWriter out) {
        youKuUtil.updateProgramById("d21d807e749611e1b356");
    }
 
}