INNER CODE UNIT · JavaScript

DetailedComponent_getDetailed

easybangumiorg/EasyBangumi · inner_source/age.js:160

 function DetailedComponent_getDetailed(summary) {
    var u = SourceUtils.urlParser(getRootUrl(), "/detail/" + summary.id);
    var doc = getDoc(u);
    JSLogUtils.d("doc", doc);
    var cartoon = detailed(doc, summary);
    var playLine = playline(doc, summary);
    return new Pair(cartoon, playLine);
 }

 function detailed(doc, summary) {
    var title = doc.select("body > div.body_content_wrapper.pb-2 > div > section > div > div.video_detail_right.ps-3.flex-grow-1 > h2").text()
//        var genre = doc.select("div.detail-info div.slide-info span").map { it.text() }.joinToString { ", " }
    var coverEle = doc.select("body > div.body_content_wrapper.pb-2 > div > section > div > div.video_detail_left > div.video_detail_cover > img").first();
    var cover =  "";
    if (coverEle != null) {
        cover = coverEle.attr("data-original");
    }
    var descEle = doc.select("body > div.body_content_wrapper.pb-2 > div > section > div > div.video_detail_right.ps-3.flex-grow-1 > div.video_detail_desc.py-2").first();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…