|
| 1 | +// 网址发布页 https://ddys.site |
| 2 | +// 网址发布页 https://ddys.wiki |
| 3 | +// 网址发布页 https://ddys.info/ |
| 4 | +var rule = { |
| 5 | + title: 'ddys', |
| 6 | + // host: 'https://ddys.pro', |
| 7 | + host: 'https://ddys.mov/', |
| 8 | + /*host: 'https://ddys.info', |
| 9 | + hostJs: async function () { |
| 10 | + let{HOST}=this |
| 11 | + let html = await request(HOST,{headers: {'User-Agent': MOBILE_UA}}); |
| 12 | + HOST = pdfh(html, 'a&&href'); |
| 13 | + return HOST; |
| 14 | + },*/ |
| 15 | + url: '/fyclass/page/fypage/', |
| 16 | + searchUrl: '/?s=**&post_type=post', |
| 17 | + searchable: 2, |
| 18 | + quickSearch: 0, |
| 19 | + filterable: 0, |
| 20 | + headers: { |
| 21 | + 'User-Agent': 'PC_UA', |
| 22 | + }, |
| 23 | + class_name: '电影&电视剧&动漫', |
| 24 | + class_url: 'category/movie&category/airing&category/anime/new-bangumi', |
| 25 | + /*class_parse:async function () { |
| 26 | + let {pdfa,pdfh,pd} = this; |
| 27 | + let html =await request(rule.host,{ |
| 28 | + headers: { |
| 29 | + 'User-Agent': MOBILE_UA, |
| 30 | + // 'Cookie':'X_CACHE_KEY=7791d8c9a761b51365e524f94a3af24f;cf_clearance=QJy.5hM8B_sizwwOLwIEq5uQYdmI70G.bK_f8ez0_qI-1736495334-1.2.1.1-80gPwpLxtdQfr_HFCYZKzpeTL4LFVqdrmU.bw3X.57Nri3h7_T74oKHp7ZY6N8moX93fPBUi1mBaVD4Cla6PWLyJjiZriZJhgFQCoaNjDG_dy3v2.akBe0I_NG4zySGqfQcg2OS6yTvCr7nOHHJleZzhfnBOUV55g0hY53Y.0JOTjokDX2VJYDGBmGdUI4M0ZsbDha9m1q2R5doUrv.a29t1_PaeZ4vthayxR2vOqNsPO_R.glP4n9hatQzykhMKBpemNQlt5Sn7xTeT2EcdJXMttSpiUHABW725F4sDtEd9EaQAS1VAtRTG4kw4KjvK4Y_brvnf5DRSRH_ZGsqL.UDPxGAFdDfh9EX_bQJhwsMXgCkR9wvgdQB.tr7hymwiVYEXichdgzVosdkQ7TDq2g', |
| 31 | + // 'Priority':'u=0, i' |
| 32 | + }, |
| 33 | + method:'GET' |
| 34 | + }) |
| 35 | + log(html) |
| 36 | + let d = []; |
| 37 | + let data = pdfa(html, '#primary-menu li.menu-item'); |
| 38 | + data.forEach((it) => { |
| 39 | + let id=pd(it, 'a&&href').match(/\.pro\/(.*)/)[1] |
| 40 | + log(id) |
| 41 | + d.push({ |
| 42 | + type_name: pdfh(it, 'a&&Text'), |
| 43 | + type_id: id, |
| 44 | + }) |
| 45 | + }); |
| 46 | + log(d) |
| 47 | + return { |
| 48 | + class: d |
| 49 | + } |
| 50 | + },*/ |
| 51 | + //class_parse: '#primary-menu li.menu-item;a&&Text;a&&href;\.pro/(.*)', |
| 52 | + //cate_exclude: '站长|^其他$|关于|^电影$|^剧集$|^类型$', |
| 53 | + double: false, |
| 54 | + play_parse: true, |
| 55 | + |
| 56 | + lazy: async function () { |
| 57 | + let {input} = this |
| 58 | + return input |
| 59 | + }, |
| 60 | + limit: 6, |
| 61 | + 推荐: async function () { |
| 62 | + return [] |
| 63 | + }, |
| 64 | + 一级: async function () { |
| 65 | + let {input, pdfa, pd, pdfh} = this; |
| 66 | + var d = []; |
| 67 | + var html = await request(input); |
| 68 | + // log(html); |
| 69 | + let list = pdfa(html, '.post-box-list&&article'); |
| 70 | + list.forEach(it => { |
| 71 | + d.push({ |
| 72 | + title: pdfh(it, 'a:eq(-1)&&Text'), |
| 73 | + img: pd(it, '.post-box-image&&style'), |
| 74 | + desc: pdfh(it, 'a:eq(0)&&Text'), |
| 75 | + url: pd(it, 'a:eq(-1)&&href'), |
| 76 | + }) |
| 77 | + }); |
| 78 | + return setResult(d); |
| 79 | + }, |
| 80 | + //一级: '.post-box-list&&article;a:eq(-1)&&Text;.post-box-image&&style;a:eq(0)&&Text;a:eq(-1)&&href', |
| 81 | + 二级: async function () { |
| 82 | + let {input, pdfa, pdfh} = this; |
| 83 | + let html = await request(input); |
| 84 | + let VOD = {}; |
| 85 | + VOD.vod_name = pdfh(html, '.post-title&&Text'); |
| 86 | + VOD.vod_content = pdfh(html, '.abstract&&Text'); |
| 87 | + var playurls = []; |
| 88 | + var playfrom = []; |
| 89 | + let src = pdfh(html, ".wp-playlist-script&&Html"); |
| 90 | + src = JSON.parse(src).tracks; |
| 91 | + src.forEach(it => { |
| 92 | + let purl = "https://v.ddys.pro" + it.src0; |
| 93 | + playfrom.push('播放'); |
| 94 | + playurls.push(unescape(it.caption) + "$" + purl) |
| 95 | + }) |
| 96 | + var plists = pdfa(html, '.entry&&p:has(a[href])') |
| 97 | + let p_1 = plists.map(v => pdfh(v, 'a&&title') + '$push://' + pdfh(v, 'a&&href')).filter(v => v.includes('uc')); |
| 98 | + playurls.push(p_1) |
| 99 | + let p_2 = plists.map(v => pdfh(v, 'a&&title') + '$push://' + pdfh(v, 'a&&href')).filter(v => v.includes('quark')); |
| 100 | + playurls.push(p_2) |
| 101 | + let tabs = ['UC网盘', '夸克网盘'] |
| 102 | + playfrom.push(tabs) |
| 103 | + VOD.vod_play_from = playfrom.join("$$$") |
| 104 | + VOD.vod_play_url = playurls.join("$$$") |
| 105 | + return VOD |
| 106 | + }, |
| 107 | + |
| 108 | + 搜索: async function () { |
| 109 | + let { |
| 110 | + input, |
| 111 | + pdfa, |
| 112 | + pdfh, |
| 113 | + pd |
| 114 | + } = this; |
| 115 | + let html = await request(input); |
| 116 | + let d = []; |
| 117 | + let data = pdfa(html, '#main&&article'); |
| 118 | + data.forEach((it) => { |
| 119 | + d.push({ |
| 120 | + title: pdfh(it, '.post-title&&Text'), |
| 121 | + pic_url: pd(it, '.post-box-image&&style'), |
| 122 | + desc: pdfh(it, '.published&&Text'), |
| 123 | + url: pd(it, 'a&&href') |
| 124 | + }) |
| 125 | + }); |
| 126 | + return setResult(d) |
| 127 | + } |
| 128 | + //搜索: '#main&&article;.post-title&&Text;;.published&&Text;a&&href' |
| 129 | +} |
0 commit comments