949596979899100101102103104
} } else { // 链接地址不在支持的列表中时返回原链接地址以及链接的页面标题 Document doc = getURLContent(url); video = new Video(); video.setTitle(doc.title()); video.setPageUrl(url); } return video; }
113114115116117118119120121122123
Document doc = getURLContent(url); /** * 视频标题 */ String title = doc.title().split("-")[0].trim(); /** * 获取视频缩略图 */ String pic = getElementAttrById(doc, "s_sina", "href");
262263264265266267268269270271272
/** * 视频标题 */ String title = ""; try { title = doc.title().split("_")[0].trim(); } catch (Exception e) { } /** * 获取视频地址
322323324325326327328329330331332
Document doc = getURLContent(url); /** * 获取视频标题 */ String title = doc.title().split(" ")[0].trim(); /** * 获取视频地址 */ String flash = getElementAttrById(doc, "outSideSwfCode", "value");
383384385386387388389390391392393
Document doc = getURLContent(url); /** * 视频标题 */ String title = doc.title().split("-")[0].trim(); /** * 获取视频缩略图 */ Element picEt = doc.getElementsByClass("summary").first();
519520521522523524525526527528529
Document doc = getURLContent(url); /** * 视频标题 */ String title = doc.title().split("-")[0].trim(); /** * 视频简介 */ String summary = doc.select(".vIntro.clear > p").text();