1+ /*
2+ @header ({
3+ searchable: 1,
4+ filterable: 0,
5+ quickSearch: 0,
6+ title: '短剧网',
7+ author: 'EylinSir',
8+ '类型': '影视',
9+ lang: 'ds'
10+ })
11+ */
12+
13+ var rule = {
14+ 类型 : '影视' ,
15+ author : 'EylinSir' ,
16+ title : '短剧网' ,
17+ host : 'https://sm3.cc' ,
18+ url : '/?cate=fyclass&page=fypage' ,
19+ searchUrl : '/search.php?q={wd}&page={pg}' ,
20+ searchable : 1 ,
21+ quickSearch : 0 ,
22+ timeout : 5000 ,
23+ play_parse : true ,
24+ class_name : '短剧大全&更新短剧' ,
25+ class_url : '1&2' ,
26+ headers : { 'User-Agent' : 'MOBILE_UA' } ,
27+
28+ lazy : async function ( ) {
29+ return { url : this . input , parse : 0 } ;
30+ } ,
31+
32+ 推荐 : async function ( ) {
33+ return await this . 一级 ( ) ;
34+ } ,
35+
36+ 一级 : async function ( tid , pg , filter , extend ) {
37+ let url = this . input ;
38+ let html = await request ( url ) ;
39+ let list = pdfa ( html , 'li.col-6' ) . map ( it => ( {
40+ title : pdfh ( it , 'h3.f-14 a&&Text' ) ,
41+ pic_url : pdfh ( it , 'img.lazy&&data-original' ) ,
42+ desc : pdfh ( it , 'h3.f-14 a&&title' ) . replace ( / ^ [ ^ ( ] * ( / , '' ) . replace ( / ) $ / , '' ) ,
43+ url : pdfh ( it , 'h3.f-14 a&&href' ) ,
44+ content : ''
45+ } ) ) ;
46+ return setResult ( list ) ;
47+ } ,
48+
49+ 二级 : async function ( ids ) {
50+ let url = this . input ;
51+ let html = await request ( url ) ;
52+ let list = pdfa ( html , '.content' ) . map ( content => {
53+ let playList = pdfh ( content , 'p' ) ;
54+ return '点我播放$push://' + pdfh ( playList , 'a&&href' ) ;
55+ } ) ;
56+ return {
57+ vod_name : pdfh ( html , '[title]&&(' ) ,
58+ vod_pic : pdfh ( html , '[data-original]&&"' ) ,
59+ vod_content : '此为推送网盘规则' ,
60+ vod_play_from : '短剧网' ,
61+ vod_play_url : list . join ( '$$$' )
62+ } ;
63+ } ,
64+
65+ 搜索 : async function ( ) {
66+ return await this . 一级 ( ) ;
67+ }
68+ } ;
0 commit comments