diff --git a/JN/EXT/JS/ikanbot2.js b/JN/EXT/JS/ikanbot2.js index bc1f1cbe..80168c89 100644 --- a/JN/EXT/JS/ikanbot2.js +++ b/JN/EXT/JS/ikanbot2.js @@ -19,7 +19,12 @@ VOD.vod_name = pdfh(html1, "h2&&Text"); VOD.vod_content = ""; log(VOD); input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2"; - let html = request(input); + let html = request(input, { + headers: { + 'User-Agent':'PC_UA', + 'Referer': input, + } + }); print(html); html = JSON.parse(html); let episodes = html.data.list; diff --git a/JN/EXT/JS/ikanbot3.js b/JN/EXT/JS/ikanbot3.js index a99ef0eb..4de59922 100644 --- a/JN/EXT/JS/ikanbot3.js +++ b/JN/EXT/JS/ikanbot3.js @@ -18,7 +18,12 @@ try { VOD.vod_content = ""; log(VOD); input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2"; - let html = request(input); + let html = request(input, { + headers: { + 'User-Agent':'PC_UA', + 'Referer': input, + } + }); print(html); html = JSON.parse(html); let episodes = html.data.list; diff --git a/JN/EXT/JS/爱看机器人.js b/JN/EXT/JS/爱看机器人.js new file mode 100644 index 00000000..77659aa3 --- /dev/null +++ b/JN/EXT/JS/爱看机器人.js @@ -0,0 +1,108 @@ +var 二级=`js: +try { + VOD={}; + let html1 = request(input); + pdfh = jsp.pdfh; + VOD.vod_id = pdfh(html1, "#current_id&&value"); + VOD.vod_name = pdfh(html1, "h2&&Text"); + // VOD.vod_pic = pdfh(html1, ".item-root&&img&&src"); + VOD.vod_pic = pdfh(html1, ".item-root&&img&&data-src"); + // VOD.vod_actor = pdfh(html1, ".celebrity&&Text"); + VOD.vod_actor = pdfh(html1, ".meta:eq(4)&&Text"); + // VOD.vod_area = pdfh(html1, ".country&&Text"); + VOD.vod_area = pdfh(html1, ".meta:eq(3)&&Text"); + // VOD.vod_year = pdfh(html1, ".year&&Text"); + VOD.vod_year = pdfh(html1, ".meta:eq(2)&&Text"); + VOD.vod_remarks = ""; + VOD.vod_director = ""; + VOD.vod_content = ""; + log(VOD); + var v_tks = ''; + let script = pdfa(html1,'script').find(it=>it.includes('v_tks+=')).replace(/