|
| 1 | +/* |
| 2 | +@header({ |
| 3 | + searchable: 2, |
| 4 | + filterable: 0, |
| 5 | + quickSearch: 0, |
| 6 | + title: '包子漫画', |
| 7 | + '类型': '影视', |
| 8 | + lang: 'ds' |
| 9 | +}) |
| 10 | +*/ |
| 11 | + |
| 12 | +var rule = { |
| 13 | + title: '包子漫画', |
| 14 | + host: 'https://cn.czmanga.com', |
| 15 | + url: '/classify?type=all®ion=fyclass&state=all&filter=%2a', |
| 16 | + searchUrl: '/search?q=wd', |
| 17 | + searchable: 2, |
| 18 | + quickSearch: 0, |
| 19 | + headers: { |
| 20 | + 'User-Agent': 'MOBILE_UA', |
| 21 | + }, |
| 22 | + timeout: 5000, |
| 23 | + class_name: '全部&国漫&日本&韩国&欧美', |
| 24 | + class_url: 'all&cn&jp&kr&en', |
| 25 | + play_parse: true, |
| 26 | + // lazy: $js.toString(async () => { |
| 27 | + // input = input.replace('https://www.twbzmg.com/', 'https://www.twbzmg.com/'); |
| 28 | + // log('input:', input); |
| 29 | + // let html = await request(input); |
| 30 | + // let pics = pdfa(html, 'ul.comic-contain&&-img'); |
| 31 | + // pics = pics.map(it => pdfh(it, 'amp-img&&src')); |
| 32 | + // return {parse: 0, url: pics.join('&&')}; |
| 33 | + // }), |
| 34 | + lazy: async function () { |
| 35 | + let {input} = this; |
| 36 | + input = input.replace('https://www.twbzmg.com/', 'https://www.twbzmg.com/'); |
| 37 | + log('input:', input); |
| 38 | + let html = await request(input); |
| 39 | + let pics = pdfa(html, 'ul.comic-contain&&-img'); |
| 40 | + pics = pics.map(it => pdfh(it, 'amp-img&&src')); |
| 41 | + return {parse: 0, url: pics.join('&&')}; |
| 42 | + }, |
| 43 | + limit: 6, |
| 44 | + 推荐: '.comics-card;h3&&Text;amp-img&&src;.text-truncate&&Text;a&&href', |
| 45 | + double: false, |
| 46 | + 一级: '.classify-items .comics-card;h3&&Text;amp-img&&src;.text-truncate&&Text;a&&href', |
| 47 | + // 二级: { |
| 48 | + // "title": ".comics-detail__title&&Text&&Text", |
| 49 | + // "img": "amp-img&&src", |
| 50 | + // //desc: '主要信息;年代;地区;演员;导演', |
| 51 | + // "desc": ".comics-detail__author&&Text;.tag-list span:eq(0)&&Text;;;;", |
| 52 | + // "content": ".comics-detail__desc&&Text", |
| 53 | + // "tabs": ".section-title", |
| 54 | + // "lists": "#chapter-items a.comics-chapters__item,#chapters_other_list a.comics-chapters__item" |
| 55 | + // }, |
| 56 | + 二级: async function () { |
| 57 | + let {input, orId, HOST, pdfa, pdfh, pd} = this; |
| 58 | + let html = await request(input); |
| 59 | + let VOD = {}; |
| 60 | + VOD.vod_name = pdfh(html, '.comics-detail__title&&Text&&Text'); |
| 61 | + VOD.type_name = ''; |
| 62 | + VOD.vod_pic = pd(html, 'amp-img&&src'); |
| 63 | + VOD.vod_content = pdfh(html, '.comics-detail__desc&&Text'); |
| 64 | + VOD.vod_remarks = pdfh(html, '.tag-list span:eq(0)&&Text'); |
| 65 | + VOD.vod_year = ''; |
| 66 | + VOD.vod_area = ''; |
| 67 | + VOD.vod_actor = pdfh(html, '.comics-detail__author&&Text'); |
| 68 | + VOD.vod_director = ''; |
| 69 | + VOD.vod_play_from = '包子漫画'; |
| 70 | + let list1 = pdfa(html, '#chapter-items a.comics-chapters__item'); |
| 71 | + let list2 = pdfa(html, '#chapters_other_list a.comics-chapters__item'); |
| 72 | + let list = list1.concat(list2); |
| 73 | + // log(list.length); |
| 74 | + let urls = []; |
| 75 | + list.forEach(item => { |
| 76 | + let title = pdfh(item, 'a&&Text'); |
| 77 | + let url = pd(item, 'a&&href'); |
| 78 | + urls.push(title + '$' + url); |
| 79 | + }); |
| 80 | + // log(urls); |
| 81 | + VOD.vod_play_url = urls.join('#'); |
| 82 | + return VOD |
| 83 | + }, |
| 84 | + 搜索: '*', |
| 85 | +} |
0 commit comments