123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- //写法思路来自biubiu影院,海阔视界,xpath筛选。2022年9月14日
- //项目魔改至github开源仓库https://github.com/Tangsan99999/TvJar中的XBiubiu.java文件,
- //本文档为完整模板,实际情况可按规则写法删去不需要的。
- {
- //规则名
- "title": "1080电影",
- //作者
- "author": "iN3",
-
- "分类": "电影$1#剧集$2#综艺$3#动漫$4",
- "分类链接": "https://1080p.tv/vodshow/{cateId}-{area}-{by}-{class}-----{catePg}---{year}/",
-
- "线路数组": "class=\"module-tab-item &&</div>",
- "线路标题": "<span>&&</small>",
-
- "播放数组": "class=\"module-play-list-content&&</div>",
-
-
- //请求头UA,不填则默认okhttp/3.12.11,可填MOBILE_UA或PC_UA使用内置的手机版或电脑版UA
- //多个请求头参数写法示例,"User-Agent$PC_UA#Referer$http://ww.baidu.com#Cookie$ser=ok",
- //习惯查看手机源码写建议用手机版UA,习惯查看PC版源码写建议用电脑版UA
- "UserAgent":"PC_UA",
- //图片是否需要走代理,一般是图片无Referer参数不显示那种需要,全局设置,0否,1是。
- "PicNeedProxy":"0",
- //是否开启获取首页数据,0关闭,1开启
- "homeContent":"1",
- //分类链接起始页码,禁止负数和含小数点。
- "firstpage": "1",
- //分类链接,{cateId}是分类,{catePg}是页码,第一页没有页码的可以这样写 第二页链接[firstPage=第一页的链接]
- "class_url": "https://1080p.tv/vodshow/{cateId}--------{catePg}---/[firstPage=https://1080p.tv/vodshow/{cateId}-----------/]",
- //分类名,分类1&分类2&分类3
- "class_name": "电影&电视剧&动漫&综艺",
- //分类名替换词,替换词1&替换词2&替换词3,替换词包含英文&的用两个中文&&代替,示例:&&id=0&&&id=1
- "class_value": "1&2&3&4",
- //筛选数据,支持直写,clan://本地路径(可能有bug),http云端链接,标准json格式,参考xpath的筛选写法
- "filterdata":{},
-
- //分类页面截取数据模式,0为json,1为普通网页。
- "cat_mode": "1",
- //分类json列表数组定位,最多支持3层,能力有限,不是所有页面都能支持
- //"catjsonlist": "data.list",
- ////分类json片单图片
- //"catjsonpic": "roomSrc",
- ////分类json片单标题
- //"catjsonname": "roomName",
- ////分类json片单链接
- //"catjsonid": "rid",
- ////分类json片单副标题
- //"catjsonstitle":"nickname",
-
- //分类是否二次截取
- "cat_YN_twice": "1",
- //分类二次截取前
- "cat_twice_pre": "class=\"module-items",
- //分类二次截取后
- "cat_twice_suf": "<div id=\"page\">",
-
- //分类数组截取前
- "cat_arr_pre": "<a",
- //分类数组截取后
- "cat_arr_suf": "</a>",
- //分类截取片单图片,截取前缀&&截取后缀
- "cat_pic": "data-original=\"&&\"",
- //分类截取片单标题,截取前缀&&截取后缀
- "cat_title": "title=\"&&\"",
- //分类截取片单副标题,截取前缀&&截取后缀
- "cat_subtitle": "class=\"module-item-note\">&&</div>",
- //分类截取片单链接,截取前缀&&截取后缀
- "cat_url": "href=\"&&\"",
-
- //分类片单链接补前缀
- "cat_prefix": "https://1080p.tv",
- //分类片单链接补后缀
- "cat_suffix": "",
-
- //搜索专属请求头UA,不填则默认okhttp/3.12.11,可填MOBILE_UA或PC_UA使用内置的手机版或电脑版UA
- //多个请求头参数写法示例,"User-Agent$PC_UA#Referer$http://ww.baidu.com#Cookie$ser=ok",
- //习惯查看手机源码写建议用手机版UA,习惯查看PC版源码写建议用电脑版UA
- "SUserAgent":"PC_UA",
- //搜索链接,搜索关键字用{wd}表示,post请求的最后面加;post
- //POST链接示例 http://www.lezhutv.com/index.php?m=vod-search;post
- "search_url": "https://1080p.tv/index.php/ajax/suggest?mid=1&wd={wd}&limit=20",
- //POST搜索body,填写搜索关键字的键值,一般常见的是searchword和wd,不是POST搜索的可留空或删除。
- //"sea_PtBody":"wd={wd}&search=",
-
- //搜索模式,0为json搜索,只支持列表在list数组里的,其它为网页截取。
- "search_mode": "0",
- //搜索json列表数组定位,不填默认内置list,最多支持3层,能力有限,不是所有页面都能支持。
- "jsonlist": "",
- //搜索json片单图片
- "jsonpic": "pic",
- //搜索json片单标题
- "jsonname": "name",
- //搜索json片单链接
- "jsonid": "id",
- //json片单副标题,这个很少有,预留着
- "jsonstitle":"",
-
- //搜索是否二次截取
- "sea_YN_twice": "0",
- //搜索二次截取前
- "sea_twice_pre": "空",
- //搜索二次截取后
- "sea_twice_suf": "",
-
- //搜索数组前缀
- "sea_arr_pre": "",
- //搜索数组后缀
- "sea_arr_suf": "",
- //搜索片单图片,截取前缀&&截取后缀
- "sea_pic": "",
- //搜索片单标题,截取前缀&&截取后缀
- "sea_title": "",
- //搜索片单链接,截取前缀&&截取后缀
- "sea_url": "",
- //搜索副标题,截取前缀&&截取后缀
- "sea_subtitle": "",
-
- //搜索片单链接补前缀
- "search_prefix": "https://1080p.tv/voddetail/",
- //搜索片单链接补后缀,这个一般json搜索的需要
- "search_suffix": "/",
-
- //片单链接是否直接播放,0否,1分类片单链接直接播放,2详情选集链接直接播放。
- //设置成直接播放后,后面3个参数请注意该留空的请务必留空。
- "force_play": "0",
- //直接播放链接补前缀
- "play_prefix": "",
- //直接播放链接补后缀,设置为#isVideo=true#可强制识别为视频链接
- "play_suffix": "",
- //直接播放链接设置请求头,只对直链视频有效,每一组用#分开
- "play_header": "",
-
- //演员和简介不支持使用jsoup写法,只支持关键字截取法
- //演员数据,截取前缀&&截取后缀
- "proj_actor": "主演:</span>&&</div>",
- //简介内容,截取前缀&&截取后缀
- "proj_plot": "class=\"module-info-introduction-content\">&&</p>",
-
- //线路截取区域,如果不需要请把tab_title或tab_arr_pre置空或者全部不要填。
- //线路是否二次截取
- "tab_YN_twice": "0",
- //线路二次截取前
- "tab_twice_pre": "",
- //线路二次截取后
- "tab_twice_suf": "",
-
- //线路截取数组前
- "tab_arr_pre": "class=\"module-tab-item tab-item",
- //线路截取数组后
- "tab_arr_suf": "</div>",
- //线路标题,截取前缀&&截取后缀
- "tab_title": "<span>&&</span>",
-
- //列表是否二次截取
- "list_YN_twice": "0",
- //列表二次截取前
- "list_twice_pre": "空",
- //列表二次截取后
- "list_twice_suf": "空",
- //列表数组截取前,必须
- "list_arr_pre": "class=\"module-play-list-content",
- //列表数组截取后,必须
- "list_arr_suf": "</div>",
-
- //集数是否二次截取
- "epi_YN_twice": "0",
- //集数二次截取前
- "epi_twice_pre": "空",
- //集数二次截取后
- "epi_twice_suf": "空",
- //集数数组截取前,必须
- "epi_arr_pre": "<a",
- //集数数组截取后,必须
- "epi_arr_suf": "</a>",
- //集数标题,截取前缀&&截取后缀
- "epi_title": "<span>&&</span>",
- //集数链接,截取前缀&&截取后缀
- "epi_url": "href=\"&&\"",
- //选集是否反转显示
- "epi_reverse": "0",
- //集数链接补前缀
- "epiurl_prefix": "https://1080p.tv",
- //集数链接补后缀
- "epiurl_suffix": "",
-
- //下面几个参数请勿乱用。否则可能会有副作用。
- //分析网页源码中有<script type="text/javascript">var player_aaaa={"flag":"play","encrypt这种源码的链接解析
- //如果网页源码里没有这种请设置为0
- "Anal_MacPlayer":"0",
- //是否开启手动嗅探,只对网页嗅探有效,0否,1是
- "ManualSniffer":"0",
- //手动嗅探视频链接关键字,每个用#隔开
- "VideoFormat":".mp4#.m3u8#.flv",
- //手动嗅探视频链接过滤关键词,每个用#隔开
- "VideoFilter":".html#=http",
-
- "筛选":{
- "1":[
- {"key":"class","name":"类型","value":[
- {"n":"全部","v":""},
- {"n":"动作","v":"动作"},
- {"n":"喜剧","v":"喜剧"},
- {"n":"爱情","v":"爱情"},
- {"n":"科幻","v":"科幻"},
- {"n":"恐怖","v":"恐怖"},
- {"n":"剧情","v":"剧情"},
- {"n":"战争","v":"战争"},
- {"n":"动作","v":"动作"},
- {"n":"惊悚","v":"惊悚"},
- {"n":"犯罪","v":"犯罪"},
- {"n":"冒险","v":"冒险"},
- {"n":"悬疑","v":"悬疑"},
- {"n":"武侠","v":"武侠"},
- {"n":"歌舞","v":"歌舞"},
- {"n":"奇幻","v":"奇幻"},
- {"n":"传记","v":"传记"},
- {"n":"警匪","v":"警匪"},
- {"n":"历史","v":" 历史"},
- {"n":"运动","v":"运动"},
- {"n":"记录","v":"记录"},
- {"n":"动画","v":"动画"}]},
- {"key":"area","name":"地区","value":[
- {"n":"全部","v":""},
- {"n":"大陆","v":"大陆"},
- {"n":"香港","v":"香港"},
- {"n":"台湾","v":"台湾"},
- {"n":"美国","v":"美国"},
- {"n":"法国","v":"法国"},
- {"n":"英国","v":"英国"},
- {"n":"日本","v":"日本"},
- {"n":"韩国","v":"韩国"},
- {"n":"德国","v":"德国"},
- {"n":"泰国","v":"泰国"},
- {"n":"印度","v":"印度"},
- {"n":"意大利","v":"意大利"},
- {"n":"西班牙","v":"西班牙"},
- {"n":"加拿大","v":"加拿大"},
- {"n":"其他","v":"其他"}]},
- {"key":"year","name":"年份","value":[
- {"n":"全部","v":""},
- {"n":"2022","v":"2022"},
- {"n":"2021","v":"2021"},
- {"n":"2020","v":"2020"},
- {"n":"2019","v":"2019"},
- {"n":"2018","v":"2018"},
- {"n":"2017","v":"2017"},
- {"n":"2016","v":"2016"},
- {"n":"2015","v":"2015"},
- {"n":"2014","v":"2014"},
- {"n":"2013","v":"2013"},
- {"n":"2012","v":"2012"},
- {"n":"2011","v":"2011"},
- {"n":"2010","v":"2010"}]},
- {"key":"by","name":"排序","value":[
- {"n":"时间","v":"time"},
- {"n":"人气","v":"hits"},
- {"n":"评分","v":"score"}]}],
- "2":[
- {"key":"class","name":"类型","value":[
- {"n":"全部","v":""},
- {"n":"古装","v":"古装"},
- {"n":"战争","v":"战争"},
- {"n":"青春偶像","v":"青春偶像"},
- {"n":"家庭","v":"家庭"},
- {"n":"犯罪","v":"犯罪"},
- {"n":"动作","v":"动作"},
- {"n":"奇幻","v":"奇幻"},
- {"n":"剧情","v":"剧情"},
- {"n":"历史","v":"历史"},
- {"n":"经典","v":"经典"},
- {"n":"乡村","v":"乡村"},
- {"n":"情景","v":"情景"},
- {"n":"商战","v":"商战"},
- {"n":"网剧","v":"网剧"},
- {"n":"其他","v":"其他"}]},
- {"key":"area","name":"地区","value":[
- {"n":"全部","v":""},
- {"n":"大陆","v":"大陆"},
- {"n":"台湾","v":"台湾"},
- {"n":"香港","v":"香港"},
- {"n":"韩国","v":"韩国"},
- {"n":"日本","v":"日本"},
- {"n":"美国","v":"美国"},
- {"n":"泰国","v":"泰国"},
- {"n":"英国","v":"英国"},
- {"n":"新加坡","v":"新加坡"},
- {"n":"其他","v":"其他"}]},
- {"key":"year","name":"年份","value":[
- {"n":"全部","v":""},
- {"n":"2022","v":"2022"},
- {"n":"2021","v":"2021"},
- {"n":"2020","v":"2020"},
- {"n":"2019","v":"2019"},
- {"n":"2018","v":"2018"},
- {"n":"2017","v":"2017"},
- {"n":"2016","v":"2016"},
- {"n":"2015","v":"2015"},
- {"n":"2014","v":"2014"},
- {"n":"2013","v":"2013"},
- {"n":"2012","v":"2012"},
- {"n":"2011","v":"2011"},
- {"n":"2010","v":"2010"},
- {"n":"2009","v":"2009"},
- {"n":"2008","v":"2008"},
- {"n":"2006","v":"2006"},
- {"n":"2005","v":"2005"},
- {"n":"2004","v":"2004"}]},
- {"key":"by","name":"排序","value":[
- {"n":"时间","v":"time"},
- {"n":"人气","v":"hits"},
- {"n":"评分","v":"score"}]}],
- "4":[
- {"key":"area","name":"地区","value":[
- {"n":"全部","v":""},
- {"n":"中国","v":"中国"},
- {"n":"日本","v":"日本"},
- {"n":"欧美","v":"欧美"},
- {"n":"其他","v":"其他"}]},
- {"key":"year","name":"年份","value":[
- {"n":"全部","v":""},
- {"n":"2022","v":"2022"},
- {"n":"2021","v":"2021"},
- {"n":"2020","v":"2020"},
- {"n":"2019","v":"2019"},
- {"n":"2018","v":"2018"},
- {"n":"2017","v":"2017"},
- {"n":"2016","v":"2016"},
- {"n":"2015","v":"2015"},
- {"n":"2014","v":"2014"},
- {"n":"2013","v":"2013"},
- {"n":"2012","v":"2012"},
- {"n":"2011","v":"2011"},
- {"n":"2010","v":"2010"},
- {"n":"2009","v":"2009"},
- {"n":"2008","v":"2008"},
- {"n":"2007","v":"2007"},
- {"n":"2006","v":"2006"},
- {"n":"2005","v":"2005"},
- {"n":"2004","v":"2004"}]},
- {"key":"by","name":"排序","value":[
- {"n":"时间","v":"time"},
- {"n":"人气","v":"hits"},
- {"n":"评分","v":"score"}]}],
- "3":[
- {"key":"area","name":"地区","value":[
- {"n":"全部","v":""},
- {"n":"内地","v":"内地"},
- {"n":"港台","v":"港台"},
- {"n":"日韩","v":"日韩"},
- {"n":"欧美","v":"欧美"}]},
- {"key":"year","name":"年份","value":[
- {"n":"全部","v":""},
- {"n":"2022","v":"2022"},
- {"n":"2021","v":"2021"},
- {"n":"2020","v":"2020"},
- {"n":"2019","v":"2019"},
- {"n":"2018","v":"2018"},
- {"n":"2017","v":"2017"},
- {"n":"2016","v":"2016"},
- {"n":"2015","v":"2015"},
- {"n":"2014","v":"2014"},
- {"n":"2013","v":"2013"},
- {"n":"2012","v":"2012"},
- {"n":"2011","v":"2011"},
- {"n":"2010","v":"2010"},
- {"n":"2009","v":"2009"},
- {"n":"2008","v":"2008"},
- {"n":"2007","v":"2007"},
- {"n":"2006","v":"2006"},
- {"n":"2005","v":"2005"},
- {"n":"2004","v":"2004"}]},
- {"key":"by","name":"排序","value":[
- {"n":"时间","v":"time"},
- {"n":"人气","v":"hits"},
- {"n":"评分","v":"score"}]}]}
-
- }
|