| | |
| | | |
| | | @Controller |
| | | public class HomeParser { |
| | | |
| | | private Logger logger=LoggerFactory.getLogger(HomeParser.class); |
| | | |
| | | @Resource |
| | | private SystemService systemService; |
| | | @Resource |
| | |
| | | if (Integer.parseInt(resourceId) == YouKuUtil.RESOURCE_ID) { |
| | | try { |
| | | info = youKuUtil.getVideoInfo(internetSearchVideo); |
| | | |
| | | } catch (Exception e) { |
| | | logger.error("全网搜视频详情出错:"+videoId); |
| | | e.printStackTrace(); |
| | | out.print(JsonUtil.loadFalseAdmin(e.getMessage())); |
| | | return; |
| | | } |
| | |
| | | try { |
| | | info = mogoTVUtil.getVideoInfo(internetSearchVideo); |
| | | } catch (Exception e) { |
| | | logger.error("全网搜视频详情出错:"+videoId); |
| | | out.print(JsonUtil.loadFalseAdmin(e.getMessage())); |
| | | return; |
| | | } |
| | |
| | | try { |
| | | info = tencentVideoUtil.getVideoInfo(internetSearchVideo); |
| | | } catch (Exception e) { |
| | | logger.error("全网搜视频详情出错:"+videoId); |
| | | out.print(JsonUtil.loadFalseAdmin(e.getMessage())); |
| | | return; |
| | | } |