总代码.js 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. ######普通列表1
  2. function 通用列表(){
  3. var res={};var items=[];
  4. var LIMIT=列表.length;
  5. for(var j=0;j<LIMIT;j++){
  6. var CODE=列表[j];
  7. var 预地址=e2Rex(CODE,地址规则);
  8. var 地址=预地址.indexOf("http")!=-1?预地址:baseURL+预地址;
  9. if(地址.search(/\.php\/.+?\.vod/)!=-1){
  10. var 日期=e2Rex(getVar("TIME_"),".time(MMdd)");
  11. var 地址=地址+"&key="+日期;
  12. }
  13. var 标题=e2Rex(CODE,标题规则);
  14. var 预图片=e2Rex(CODE,图片规则);
  15. if(预图片.indexOf("/mac:")!=-1){
  16. var 图片="http:"+预图片.split("/mac:")[1];
  17. }else if(预图片.indexOf("=http")!=-1){
  18. var 图片=预图片.match(/.*(http.*)/)[1];
  19. }else if(预图片.indexOf("http")==0){
  20. var 图片=预图片;
  21. }else if(预图片==""){
  22. var 图片="https://egwang186.coding.net/p/egwang186/d/iptv/git/raw/master/js3.0/kongbai.gif";
  23. }else{
  24. var 图片=baseURL+预图片;
  25. if(baseURL.indexOf("1090ys2.com")!=-1){
  26. var 图片=图片+'@{"user-agent":"Mozilla/5.0","referer":"http://1090ys2.com/"}';
  27. }
  28. }
  29. var 简介=e2Rex(CODE,简介规则);
  30. var 图片底部=e2Rex(CODE,图片底部规则);
  31. var 左上=e2Rex(CODE,左上规则);
  32. var 右上=e2Rex(CODE,右上规则);
  33. items.push({title:标题,url:地址,img:图片,detail:简介,td:图片底部,zs:左上,ys:右上});
  34. }
  35. res.data=items;
  36. if(NEXTPAGE){
  37. res.nextpage=NEXTPAGE;
  38. }
  39. if(PREPAGE){
  40. res.prepage=PREPAGE;
  41. }
  42. return JSON.stringify(res);
  43. }
  44. var baseURL=getVar("baseURL");
  45. eval(getVar("列表规则"));通用列表();
  46. ######选集列表2
  47. function CMS选集列表(){
  48. var res={};var items=[];var detail=[];
  49. for(var i=0;i<分类.length;i++){
  50. var 分类CODE=分类[i];
  51. var 列表=e2Arr(分类CODE,列表规则).filter(Boolean);
  52. if(线路){
  53. var 标题=e2Rex(线路[i],标题规则);
  54. }else{
  55. var 标题=e2Rex(分类CODE,标题规则);
  56. }
  57. var LIST=[];
  58. for(var j=0;j<列表.length;j++){
  59. if(列表[j].indexOf("$")!=-1){
  60. var 选集=e2Rex(列表[j],选集规则);
  61. if(选集==""){
  62. 选集=j+1;
  63. }
  64. }else{
  65. var 选集=j+1;
  66. }
  67. var 选集地址=e2Rex(列表[j],选集地址规则);
  68. //开始根据网址,线路判断前缀
  69. if(标题=="xhzy"){
  70. 选集地址=选集地址;
  71. }else if(baseURL.indexOf("api.yunboys.cn")!=-1){
  72. 选集地址="https://jx.yunboys.cn/?url="+选集地址;
  73. }else if(baseURL.indexOf("ttky8.com")!=-1){
  74. 选集地址="http://ip111.cn/?wd="+选集地址;
  75. }else if(标题.indexOf("Tcm3u8")!=-1){
  76. 选集地址="https://api.iopenyun.com:88/vips/?url="+选集地址;
  77. }else if(baseURL.indexOf("ujuba.com")!=-1){
  78. 选集地址="https://www.dmplay.xyz/j0?url="+选集地址;
  79. }else if(baseURL.indexOf("xinlangapi.com")!=-1){
  80. if(标题=="xlm3u8"){
  81. 选集地址="https://www.xinlangjiexi.com/m3u8/?url="+选集地址;
  82. }else{
  83. 选集地址=选集地址;
  84. }
  85. }else if(标题=="autue"){
  86. 选集地址=e2Rex(选集地址,".dn64()");
  87. }else if(baseURL.indexOf("yanaifei.cn")!=-1){
  88. if(标题=="VIP"){
  89. 选集地址="http://ip111.cn/?wd=http://www.yanaifei.cn/addons/dplayer/?pid="+选集地址;
  90. }else if(标题=="qq"){
  91. 选集地址="http://ip111.cn/?wd=http://www.yanaifei.cn/addons/dplayer/qq.php?url="+选集地址;
  92. }else if(标题=="VIP3"){
  93. 选集地址="http://ip111.cn/?wd=http://www.yanaifei.cn/addons/dplayer/rrjx.php?fid="+选集地址;
  94. }else if(标题=="VIP2"){
  95. 选集地址="http://ip111.cn/?wd=http://www.yanaifei.cn/addons/dplayer/ddjx.php?url="+选集地址;
  96. }else if(标题=="LIBVIO"){
  97. 选集地址="http://ip111.cn/?wd=http://www.yanaifei.cn/addons/dplayer/lbjx.php?url="+选集地址;
  98. }else{
  99. 选集地址=选集地址;
  100. }
  101. }else if(baseURL.indexOf("apicdn.vipm3u8.com")!=-1){
  102. 选集地址="https://player.vipparsing.com/player?token=4732bUERfVb60lWNSLrsd5-2s1r70KeA89C3VwrGYYdByboQT9o4OzxIr5-8/cX9-sO6&vid="+选集地址;
  103. }else if(选集地址.indexOf("html")!=-1||选集地址.indexOf("www.bilibili.com")!=-1||选集地址.indexOf("share.weiyun.")!=-1){
  104. 选集地址="http://1.117.152.239:39000/?url="+选集地址;
  105. }else if(选集地址.indexOf(":6688/player")!=-1){
  106. var hash=选集地址.split("player/")[1];
  107. var dd=hash.substring(0,2);
  108. 选集地址="http://ip111.cn/?wd=https://qq.iqiyi3.b555b.com:7777/"+dd+"/"+hash+"/hd.m3u8";
  109. }else if(baseURL.indexOf("api.yparse.com")!=-1){
  110. 选集地址="https://yparse.jn1.cc/index.php?url="+选集地址;
  111. }else if(标题.indexOf("rrm3u8")!=-1){
  112. 选集地址="https://www.meiju11.com/ckplayerx/m3u8.php?url="+选集地址;
  113. }else if(标题=="dmplay"||标题=="base"){
  114. 选集地址="https://play.omofun.tv/m3u8.php?url="+选集地址;
  115. }else if(标题.indexOf("ltnb")!=-1){
  116. //选集地址="https://jifei.longtengzy.fun/video/?url="+选集地址;
  117. //选集地址="http://jx.yinliub.cn/home/api?type=ys&uid=51213&key=chiprvyFHJNOTUVZ39&url="+选集地址;
  118. 选集地址="https://analysis.yikan.one/analysis/player/?uid=8&my=fjkmoqFJLORTVZ1359&url="+选集地址;
  119. }else if(选集地址.indexOf(".ruifenglb.com")!=-1){
  120. 选集地址="http://ip111.cn/?wd=https://js.jisujiexi.vip/home/api?type=ys&uid=196395&key=aejlnoprsABDNUZ159&url="+选集地址;
  121. }else if(选集地址.indexOf(".m3u8")>15||选集地址.indexOf(".mp4")>15){
  122. 选集地址="http://ip111.cn/?wd="+选集地址;
  123. }else if(标题=="4kdym"||标题=="8kvod"){
  124. 选集地址="http://ip111.cn/?wd="+decodeURIComponent(选集地址);
  125. }else if(标题=="789pan"||标题=="pll"){
  126. 选集地址="https://dp.jiexi.work/bfq.php?url="+选集地址;
  127. }else if(标题=="zbkplayer"){
  128. 选集地址="http://analysis.yikan.one/analysis/player/?uid=8&my=fjkmoqFJLORTVZ1359&url="+选集地址;
  129. }else if(标题=="lekanzyw"){
  130. //选集地址="https://bfq.ikan6.vip/m3u8.php?url="+选集地址+'@{"Referer":"https://ikan6.vip/","User-Agent":"Mozilla/5.0 Android"}';
  131. 选集地址='https://play.ekvod.com/play/?url='+选集地址;
  132. }else if(标题.indexOf("miaoparty2")!=-1){
  133. 选集地址="https://vip5.jiexi.one?url="+选集地址;
  134. }else if(标题.indexOf("miaoparty")!=-1){
  135. 选集地址="https://jx.yingciyuan.cn/?url="+选集地址;
  136. }else if(标题.indexOf("mx771")!=-1||标题.indexOf("mengxin886")!=-1){
  137. 选集地址="https://vip.mengx.vip/home/api?type=ys&uid=2117076&key=abghklvyDEIJLNT025&url="+选集地址;
  138. }else if(标题.indexOf("taiyi")!=-1){
  139. 选集地址="https://jx.cyu0.cn/?url="+选集地址;
  140. }else if(标题.indexOf("x1play")!=-1){
  141. 选集地址="https://www.xing1.vip/player/dp/?url="+选集地址;
  142. }else if(标题.indexOf("xfyun")!=-1){
  143. 选集地址="https://b.sigu.tv/api/type/?key=b08DPxVf9MCYrAX8fP&url="+选集地址;
  144. }else if(标题=="rx"){
  145. 选集地址="https://svip.rongxingvr.top/api/?key=B26J6jO5MOnjUv3GqW&url="+选集地址;
  146. }else if(标题=="renrenmi"){
  147. //选集地址="http://www.1080kan.cc/jiexi/rrmi.php?url="+选集地址+'@{"Referer":"http://www.1080kan.cc/"}';
  148. //选集地址="https://kuba.renrenmi.cc:2266/api/?key=2WzAj2s0pgQ1AYQoPT&url="+选集地址;
  149. //选集地址="https://sudu.renrenmi.cc:2021/ku/?url="+选集地址;
  150. //选集地址="https://jiexi.astv.vip/home/api?type=ys&uid=1&key=free&url="+选集地址;
  151. 选集地址="https://jx.blbo.cc:4433/?url="+选集地址;
  152. }else if(baseURL.indexOf('fqzy.cc')!=-1){
  153. 选集地址="https://jx.fqzy.cc/jx.php?url="+选集地址;
  154. }else if(标题=='dym3'){
  155. 选集地址="https://1.m3u8.shop/m3u8.php?url="+选集地址;
  156. }else if(baseURL.indexOf('zy.7kjx.com')!=-1){
  157. 选集地址="https://jx.xmflv.vip/?url="+选集地址;
  158. }else if(标题.indexOf('leduo')!=-1){
  159. 选集地址="https://api.ldjx.cc/wp-api/ifr.php?vid="+选集地址;
  160. }else if(标题.indexOf("mengxin")!=-1){
  161. 选集地址="https://jx3.bifenvip.com/?url="+选集地址;
  162. }else if(标题.indexOf("aly")!=-1){
  163. 选集地址="https://aly.178du.com/"+选集地址;
  164. }else if(标题=='niux'){
  165. 选集地址="https://www.juztv.com/jx.php?id="+选集地址;
  166. }else if(标题=='u'){
  167. 选集地址="https://jx.dxsdkw.cn/nv/"+选集地址+".m3u8";
  168. }else if(标题=='youbo'){
  169. 选集地址="http://1090ys2.com/x2.php?id="+选集地址+'@{"Referer":"http://1090ys2.com/"}';
  170. }else if(baseURL.indexOf('tvyb02.com')!=-1||baseURL.indexOf('zy.vodcdn.top')!=-1){
  171. if(标题=='hkm3u8'){
  172. 选集地址="https://jxn.dxsdkw.cn/jm/x2.php?id="+选集地址+'@{"referer":"http://www.tvyb02.com/"}';
  173. }else if(选集地址.indexOf(".m3u8")>15||选集地址.indexOf(".mp4")>15||选集地址.indexOf("/obj/tos")!=-1){
  174. 选集地址="http://ip111.cn/?wd="+选集地址;
  175. }else if(标题=='banyun'||标题=='yunbo'){
  176. var playurl="https://www.mayigq.com/vodzip/player.php?vid="+选集地址;
  177. 选集地址="http://ip111.cn/?wd="+playurl;
  178. }
  179. }
  180. //结束判断
  181. LIST.push({title:选集,url:选集地址});
  182. }
  183. var play_={};
  184. play_.title=标题;
  185. play_.list=LIST;
  186. items.push(play_);
  187. }
  188. detail.push({desc:简介});
  189. res.data=items;
  190. res.desc=detail;
  191. return JSON.stringify(res);
  192. }
  193. function 选集列表(){
  194. var res={};var items=[];var detail=[];
  195. for(var i=0;i<分类.length;i++){
  196. var 分类CODE=分类[i];
  197. var 列表=e2Arr(分类CODE,列表规则);
  198. if(线路){
  199. var 标题=e2Rex(线路[i],标题规则);
  200. }else{
  201. var 标题=e2Rex(分类CODE,标题规则);
  202. }
  203. if(baseURL.search(/\.php\/.+?\.vod/)!=-1){
  204. var PARSE=e2Rex(分类CODE,".json(player_info).json(parse)").split(",");
  205. var PARSE2=e2Rex(分类CODE,".json(player_info).json(parse2)").split(",");
  206. var 总接口=PARSE.concat(PARSE2).filter(item => item.search(/\/.+?\?.+?=/)!=-1);
  207. var 过滤规则=[
  208. /jx\.+huimaojia\.+com\/player/,/py\.+789pan\.+cn\/player\/tm\.php\?url=/,/ztys\.+waruanzy\.+com\/player\/\?url=/,/yingshi\.+waruanzy\.+com\/789pan\/\?url=/,/vip\.+parwix\.+com:4433\/player\/\?url=/,/api\.+cxitco\.+cn/,/\/vip\.+renrenmi.cc/,/yanbing\.+parwix\.+com:4433\/player/,/json\.+cantin\.+cc\/apijson\.php/,/ffdm\.+miaoletv\.+com\/\?url=/,/vip\.+sylwl\.+cn\/api\/\?key=/,/jx\.+dikotv\.+com\/\?url=/,/zly\.+xjqxz\.+top\/player\/\?url=/,/5znn\.+xyz\/m3u8\.+php/,/uid=1735&my=/,/api\.+xkvideo\.+design\/m3u8\.+php\?url=/,/play\.+szbodankyy\.+com\/xxoocnmb/,/vip\.+fj6080\.+xyz\/player\/\?url=/,/a\.+dxzj88\.+com\/jiexi/,/host\.+q-q\.+wang\/api/,/qpsvipr\.+naifeimi\.+com/,/保佑/
  209. ];
  210. var 可用接口=总接口.filter(function (text) {return !过滤规则.some(function (regex) {return regex.test(text);});});
  211. if(JSON.stringify(可用接口).indexOf("=")!=-1){
  212. if(可用接口[0].indexOf("http")!=-1){
  213. var 接口=可用接口[0].match(/.+(url|v|vid|php\?id)=/)[0].replace("..",".");
  214. }else if(可用接口[0].indexOf("//")==0){
  215. var 接口=baseURL.split(":")[0]+可用接口[0].match(/\/\/.+(url|v|vid|php\?id)=/)[0].replace("..",".");
  216. }else{
  217. var 接口=baseURL.match(/https?:\/\/[^\/]*/)[0]+可用接口[0].match(/\/.+(url|v|vid|php\?id)=/)[0].replace("..",".");
  218. }
  219. }else{
  220. var 接口="http://1.117.152.239:39000/?url=";
  221. }
  222. }else if(baseURL.indexOf("api.php/app/")!=-1||baseURL.indexOf("xgapp.php/v")!=-1){
  223. var 接口=e2Rex(分类CODE,".json(parse_api)");
  224. }else{
  225. var 接口=baseURL;
  226. }
  227. var LIST=[];
  228. for(var j=0;j<列表.length;j++){
  229. var 选集=e2Rex(列表[j],选集规则);
  230. var 选集地址=e2Rex(列表[j],选集地址规则);
  231. if(baseURL.indexOf("xgapp.php/v")!=-1||baseURL.indexOf("api.php/app/")!=-1||baseURL.search(/\.php\/.+?\.vod/)!=-1){
  232. if(选集地址.indexOf(".m3u8")>15||选集地址.indexOf(".mp4")>15){
  233. if(选集地址.indexOf(".ruifenglb.com")!=-1){
  234. var 接口="https://js.jisujiexi.vip/home/api?type=ys&uid=196395&key=aejlnoprsABDNUZ159&url=";
  235. var 选集地址="http://ip111.cn/?wd="+接口+选集地址;
  236. }else{
  237. var 选集地址="http://ip111.cn/?wd="+选集地址;
  238. }
  239. }else{
  240. var 选集地址="http://ip111.cn/?wd="+接口+选集地址;
  241. }
  242. }else if(baseURL.search(/api\.php\/.*?\/vod/)!=-1){
  243. if(baseURL.indexOf("ppzhu.vip")!=-1||baseURL.indexOf("api.8d8q.com")!=-1){
  244. var 选集地址="http://ip111.cn/?wd="+选集地址+"&app=10003&account=272775028&password=qq272775028";
  245. }else{
  246. if(选集地址.indexOf("=")!=-1||选集地址.indexOf(".m3u8")>15||选集地址.indexOf(".mp4")>15){
  247. var 选集地址="http://ip111.cn/?wd="+选集地址;
  248. }else if(选集地址.indexOf("html")||选集地址.indexOf("www.bilibili.com")){
  249. var 选集地址="http://ip111.cn/?wd=https://api.m3u8.tv:5678/home/api?type=ys&uid=233711&key=bgjnopvDHPUY035689&url="+选集地址;
  250. }else{
  251. var 选集地址=选集地址;
  252. }
  253. }
  254. }else if(选集地址.indexOf("http")!=-1){
  255. var 选集地址=选集地址;
  256. }else{
  257. if(baseURL.indexOf("gimytv.com")!=-1){
  258. var 选集地址=接口+选集地址+'@{"user-agent":"Mozilla/5.0 Windows10","Referer":"'+接口+'"}';
  259. }else{
  260. var 选集地址=接口+选集地址;
  261. }
  262. }
  263. LIST.push({title:选集,url:选集地址});
  264. }
  265. var play_={};
  266. play_.title=标题;
  267. play_.list=LIST;
  268. items.push(play_);
  269. }
  270. detail.push({desc:简介});
  271. res.data=items;
  272. res.desc=detail;
  273. return JSON.stringify(res);
  274. }
  275. var baseURL=getVar("baseURL");
  276. if(typeof(type) == "undefined"){
  277. var 类型="";
  278. }else{
  279. var 类型=type;
  280. }
  281. if(类型){
  282. CMS选集列表();
  283. }else{
  284. 选集列表();
  285. }
  286. ######UA3
  287. var baseURL=getVar("baseURL");
  288. if(baseURL.indexOf(".php/")!=-1){
  289. if(baseURL.indexOf("api.php/app")!=-1||baseURL.indexOf("xgapp")!=-1||baseURL.indexOf("freekan")!=-1){
  290. "Dart/2.14 (dart:io)";
  291. }else if(baseURL.indexOf("zsb")!=-1||baseURL.indexOf("fkxs")!=-1||baseURL.indexOf("xays")!=-1||baseURL.indexOf("xcys")!=-1||baseURL.indexOf("szys")!=-1||baseURL.indexOf("dxys")!=-1||baseURL.indexOf("ytys")!=-1||baseURL.indexOf("qnys")!=-1){
  292. "Dart/2.15 (dart:io)";
  293. }else if(baseURL.indexOf(".vod")!=-1){
  294. "okhttp/4.1.0";
  295. }else{
  296. "Dalvik/2.1.0";
  297. }
  298. }else{
  299. "";
  300. }
  301. ######通用免嗅探4
  302. var uu=getVar("url");
  303. if(uu.indexOf("ip111.cn/?wd=")!=-1){
  304. var playurl=uu.split("ip111.cn/?wd=")[1];
  305. if(playurl.indexOf("duoduozy.com")!=-1||playurl.indexOf("m3u8.cache.suoyo.cc")!=-1){
  306. /*var uuu="https://bo.movie06.com/ddplay/play.php?url="+playurl;
  307. var resp=getHttp(JSON.stringify({url:uuu,head:{"referer":"https://www.duoduozy.com/"}}));
  308. var uuuu=resp.match(/var urls.+?"(.+?)"/)[1];
  309. JSON.stringify({url:uuuu});*/
  310. "web=https://jhpc.manduhu.com/duoduo/?url="+playurl+'@{"Referer":"https://555dy3.com"}';
  311. }else if(playurl.indexOf("1080p.one/mogai_api.php/v1.api/Index?list=")!=-1){
  312. uu="https://zy.youhuima.vip/?url="+playurl.split("url=")[1];
  313. "web="+uu;
  314. }else if(playurl.indexOf("cat.wkfile.com")!=-1){
  315. JSON.stringify({url:playurl,head:{"User-Agent":"Lavf/58.12.100","Referer":"wkfile.com"}});
  316. }else if(playurl.indexOf("=")==-1&&playurl.indexOf(".m3u8")>15||playurl.indexOf(".mp4")>15||playurl.indexOf("/obj/tos")!=-1){
  317. if(playurl.indexOf("hsl.ysgc.xyz")!=-1){
  318. var cccc=JZ(JSON.stringify({url:"https://play.dushe520.com/m3u8.php?url="+playurl}));
  319. JSON.stringify({url:JSON.parse(cccc.code).url,head:{"Referer":"https://ysgc.cc"}});
  320. }else{
  321. JSON.stringify({url:playurl.match(/.*(http.*)/)[1]});
  322. }
  323. }else if(playurl.indexOf("=")!=-1){
  324. var resp=JZ(JSON.stringify({url:playurl,redirect:false}));
  325. if(resp.head.location||resp.head.Location){
  326. var a=resp;
  327. while(a.head.location||a.head.Location){
  328. var finalurl=a.head.location||a.head.Location;
  329. if(finalurl.indexOf(".mp4")>30){
  330. var a={"head":{"cookie":"ccccc"}};
  331. }else{
  332. var a=JZ(JSON.stringify({url:finalurl,redirect:false,head:{"User-Agent":"Mozilla/5.0 Android"}}));
  333. }
  334. }
  335. var realurl=finalurl;
  336. if(realurl.indexOf("=http")!=-1||realurl.indexOf("url=")!=-1){
  337. if(a.code.indexOf("<html")!=-1){
  338. "web="+realurl;
  339. }else{
  340. var ppurl=JSON.parse(a.code).url;
  341. if(realurl.indexOf("mgtv.com")!=-1){
  342. JSON.stringify({url:ppurl,head:{"User-Agent":"Mozilla/5.0","Referer":""}});
  343. }else if(realurl.indexOf("bilibili.com")!=-1){
  344. JSON.stringify({url:ppurl});
  345. }else{
  346. JSON.stringify({url:ppurl});
  347. }
  348. }
  349. }else{
  350. if(playurl.indexOf("www.mgtv.com")!=-1){
  351. JSON.stringify({url:realurl,head:{"User-Agent":"Mozilla/5.0","Referer":""}});
  352. }else{
  353. JSON.stringify({url:realurl});
  354. }
  355. }
  356. }else{
  357. function 切换解析(data){
  358. if(data.split("url=")[1].indexOf("http")!=-1){
  359. return "web=http://1.117.152.239:39000/?url="+data.split("url=")[1];
  360. }else if(data.split("url=")[1].indexOf("renrenmi")!=-1){
  361. return "web=https://jx.blbo.cc:4433/?url="+data.split("url=")[1];
  362. }else if(data.split("url=")[1].indexOf("LT-")!=-1){
  363. return "web=https://analysis.yikan.one/analysis/player/?uid=8&my=fjkmoqFJLORTVZ1359&url="+data.split("url=")[1];
  364. }else{
  365. var 全能="http://jx.jisujiexi.vip/home/api?type=ys&uid=5196896&key=ajortuvxzRTUWXZ037&url="+data.split("url=")[1];
  366. var link=e2Rex(getHttp(全能),".json(url).or().json(data).json(url)");
  367. return JSON.stringify({url:link});
  368. }
  369. }
  370. if(resp.code.indexOf("<html")!=-1){
  371. if(resp.code.search(/player=new/)!=-1||resp.code.search(/<div id="video"/)!=-1||resp.code.search(/<div id="[^"]*?player"/)!=-1||resp.code.search(/\/\/视频链接/)!=-1||resp.code.search(/<iframe[\s\S]*?src="[^"]+?"/)!=-1||resp.code.search(/<video[\s\S]*?src="[^"]+?"/)!=-1){
  372. "web="+playurl;
  373. }else{
  374. 切换解析(playurl);
  375. }
  376. }else{
  377. if(e2Rex(resp.code,".json(url).or().json(data).json(url)").length>1){
  378. var realurl=e2Rex(resp.code,".json(url).or().json(data).json(url)");
  379. if(playurl.indexOf("mgtv.com")!=-1){
  380. JSON.stringify({url:realurl,head:{"User-Agent":"Mozilla/5.0","Referer":""}});
  381. }else if(playurl.indexOf("bilibili.com")!=-1){
  382. JSON.stringify({url:realurl});
  383. }else{
  384. JSON.stringify({url:realurl});
  385. }
  386. }else{
  387. 切换解析(playurl);
  388. }
  389. }
  390. }
  391. }
  392. }else{
  393. "web="+uu;
  394. }
  395. ######模板规则5
  396. var 模板库=[
  397. {
  398. "title":"iptv/vod",
  399. "匹配":"api\\.php\\/.+?\\/vod\\/",
  400. "rule":{
  401. "首页规则":'var 列表=e2Arr(getVar("源码"),".json(data)");var 标题规则=".json(title)";var 地址规则=".json(nextlink)";var 图片规则=".json(pic)";var 简介规则=".json(state).c().json(type)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  402. "筛选数据":'alert("请等待几秒...列表加载中");var a="分类+电影=movie&start=&area=&type=+电视剧=tvplay&start=&area=&type=+综艺=tvshow&start=&area=&type=+动漫=comic&start=&area=&type=+动作片=movie&start=&area=&type=动作+喜剧片=movie&start=&area=&type=喜剧+爱情片=movie&start=&area=&type=爱情+科幻片=movie&start=&area=&type=科幻+恐怖片=movie&start=&area=&type=恐怖+剧情片=movie&start=&area=&type=剧情+大陆剧=tvplay&start=&area=大陆&type=+香港剧=tvplay&start=&area=香港&type=+台湾剧=tvplay&start=&area=台湾&type=+美国剧=tvplay&start=&area=美国&type=+日本剧=tvplay&start=&area=日本&type=+韩国剧=tvplay&start=&area=韩国&type=";var b="";for(var i=1;i<50;i++){b=b+"+第"+i+"页="+i;}var b="翻页+"+b;a+"\\n"+b;',
  403. "分类规则":'var 列表=e2Arr(getVar("源码"),".json(data)");var 标题规则=".json(title)";var 地址规则=".json(nextlink)";var 图片规则=".json(pic)";var 简介规则=".json(state).c().json(type)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  404. "选集规则":'var 分类=e2Arr(getVar("源码"),".json(videolist).z(\\".*?\\\\])");var 线路="";var 简介=e2Arr(getVar("源码"),".json(intro)");var 列表规则=".z(\\\\{.*?\\\\})";var 标题规则=".z2(\\"\\\\(.*?\\\\)\\")";var 选集规则=".json(title)";var 选集地址规则=".json(url)";',
  405. "搜索规则":'var URL=baseURL+"?ac=list&page=1&wd="+getVar("KEY");if(baseURL.indexOf("api.php/app")!=-1||baseURL.indexOf("xgapp")!=-1||baseURL.indexOf("freekan")!=-1){var UA="Dart/2.14 (dart:io)"}else if(baseURL.indexOf("zsb")!=-1||baseURL.indexOf("fkxs")!=-1||baseURL.indexOf("xays")!=-1||baseURL.indexOf("xcys")!=-1||baseURL.indexOf("szys")!=-1||baseURL.indexOf("dxys")!=-1||baseURL.indexOf("ytys")!=-1||baseURL.indexOf("qnys")!=-1){var UA="Dart/2.15 (dart:io)"}else if(baseURL.indexOf(".vod")!=-1){var UA="okhttp/4.1.0"}else{var UA="Dalvik/2.1.0"}var 源码=getHttp(JSON.stringify({url:URL,head:{"User-Agent":UA}}));var 列表=e2Arr(源码,".json(data)");var 标题规则=".json(title)";var 地址规则=".json(nextlink)";var 图片规则=".json(pic)";var 简介规则=".json(state).c().json(type)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  406. "免嗅探规则":'eval(getVar("通用免嗅探"))'
  407. }
  408. },
  409. {
  410. "title":"v1.vod",
  411. "匹配":"\\.php\\/.+?\\.vod",
  412. "rule":{
  413. "首页规则":'var 列表=getVar("源码").replace(/<.*?>/g,"").replace(/[\\s]*/g,"").match(/\\{[^\\{]*"vod_id".*?"type_1".*?\\}/g);var 标题规则=".json(vod_name)";var 地址规则=".c(/detail?vod_id=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(vod_remarks).c().json(vod_actor).c().json(vod_blurb)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  414. "筛选数据":'alert("请等待几秒...列表加载中");try{var resp=getHttp(JSON.stringify({url:getVar("baseURL")+"/types",head:{"User-Agent":getVar("当前UA")}}));}catch(err){alert("哦,报错了,错误描述:"+err.message);}var 主=e2Arr(resp,".json(data).json(list)");var a="";for(var i in 主){a=a+"+"+JSON.parse(主[i]).type_name+"="+JSON.parse(主[i]).type_id+"&class=&area=";var 类型=e2Rex(主[i],".json(type_extend).json(class)").split(",").filter(Boolean);if(类型.length>1){for(var j in 类型){a=a+"+"+JSON.parse(主[i]).type_name+"-"+类型[j]+"="+JSON.parse(主[i]).type_id+"&class="+类型[j]+"&area=";}}var 地区=e2Rex(主[i],".json(type_extend).json(area)").split(",").filter(Boolean);if(地区.length>1){for(var k in 地区){a=a+"+"+JSON.parse(主[i]).type_name+"-"+地区[k]+"="+JSON.parse(主[i]).type_id+"&class=&area="+地区[k];}}}var a="分类"+a;var b="";for(var i=1;i<50;i++){b=b+"+第"+i+"页="+i;}var b="翻页+"+b;a+"\\n"+b;',
  415. "分类规则":'var 列表=e2Arr(getVar("源码"),".json(data).json(list)");var 标题规则=".json(vod_name)";var 地址规则=".c(/detail?vod_id=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(vod_remarks).c().json(vod_actor).c().json(vod_blurb)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  416. "选集规则":'var 分类=e2Arr(getVar("源码"),".json(data).json(vod_play_list)");var 线路="";var 简介=e2Rex(getVar("源码"),".json(data).json(vod_content)");var 列表规则=".json(url).ct(#).z(.*?\\\\$.*?#)";var 标题规则=".json(player_info).json(show)";var 选集规则=".z2(\\\\(.+?\\\\)\\\\$)";var 选集地址规则=".z2(\\\\$\\\\(.+?\\\\)[#|\\"])";',
  417. "搜索规则":'var URL=baseURL+"?page=1&limit=10&wd="+getVar("KEY");if(baseURL.indexOf("api.php/app")!=-1||baseURL.indexOf("xgapp")!=-1||baseURL.indexOf("freekan")!=-1){var UA="Dart/2.14 (dart:io)"}else if(baseURL.indexOf("zsb")!=-1||baseURL.indexOf("fkxs")!=-1||baseURL.indexOf("xays")!=-1||baseURL.indexOf("xcys")!=-1||baseURL.indexOf("szys")!=-1||baseURL.indexOf("dxys")!=-1||baseURL.indexOf("ytys")!=-1||baseURL.indexOf("qnys")!=-1){var UA="Dart/2.15 (dart:io)"}else if(baseURL.indexOf(".vod")!=-1){var UA="okhttp/4.1.0"}else{var UA="Dalvik/2.1.0"}var 源码=getHttp(JSON.stringify({url:URL,head:{"User-Agent":UA}}));var 列表=e2Arr(源码,".json(data).json(list)");var 标题规则=".json(vod_name)";var 地址规则=".c(/detail?vod_id=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(vod_remarks).c().json(vod_actor).c().json(vod_blurb)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  418. "免嗅探规则":'eval(getVar("通用免嗅探"))'
  419. }
  420. },
  421. {
  422. "title":"xgapp.php/v",
  423. "匹配":"xgapp\\.php\\/v",
  424. "rule":{
  425. "首页规则":'var 列表=getVar("源码").replace(/<.*?>/g,"").replace(/[\\s]*/g,"").match(/\\{"vod_id".*?\\}/g);var 标题规则=".json(vod_name)";var 地址规则=".c(video_detail?id=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(vod_remarks).c().json(vod_time_add)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  426. "筛选数据":'alert("请等待几秒...列表加载中");try{var resp=getHttp(JSON.stringify({url:getVar("baseURL")+"nav",head:{"User-Agent":getVar("当前UA")}}));}catch(err){alert("哦,报错了,错误描述:"+err.message);}var 主=e2Arr(resp,".json(list).or().json(data)");var a="";for(var i in 主){a=a+"+"+JSON.parse(主[i]).type_name+"="+JSON.parse(主[i]).type_id+"&class=&area=";var 类型=e2Rex(主[i],".json(type_extend).json(class)").split(",").filter(Boolean);if(类型.length>1){for(var j in 类型){a=a+"+"+JSON.parse(主[i]).type_name+"-"+类型[j]+"="+JSON.parse(主[i]).type_id+"&class="+类型[j]+"&area=";}}var 地区=e2Rex(主[i],".json(type_extend).json(area)").split(",").filter(Boolean);if(地区.length>1){for(var k in 地区){a=a+"+"+JSON.parse(主[i]).type_name+"-"+地区[k]+"="+JSON.parse(主[i]).type_id+"&class=&area="+地区[k];}}}var a="分类"+a;var b="";for(var i=1;i<50;i++){b=b+"+第"+i+"页="+i;}var b="翻页+"+b;a+"\\n"+b;',
  427. "分类规则":'var 列表=e2Arr(getVar("源码"),".json(data)");var 标题规则=".json(vod_name)";var 地址规则=".c(video_detail?id=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(vod_remarks).c().json(vod_time_add)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  428. "选集规则":'var 分类=e2Arr(getVar("源码"),".json(data).json(vod_info).json(vod_url_with_player)");var 线路="";var 简介=e2Rex(getVar("源码"),".json(data).json(vod_info).json(vod_content)");var 列表规则=".json(url).ct(#).z(.*?\\\\$.*?#)";var 标题规则=".json(name)";var 选集规则=".z2(\\\\(.+?\\\\)\\\\$)";var 选集地址规则=".z2(\\\\$\\\\(.+?\\\\)[#|\\"])";',
  429. "搜索规则":'var URL=baseURL+"search?pg=1&text="+getVar("KEY");if(baseURL.indexOf("api.php/app")!=-1||baseURL.indexOf("xgapp")!=-1||baseURL.indexOf("freekan")!=-1){var UA="Dart/2.14 (dart:io)"}else if(baseURL.indexOf("zsb")!=-1||baseURL.indexOf("fkxs")!=-1||baseURL.indexOf("xays")!=-1||baseURL.indexOf("xcys")!=-1||baseURL.indexOf("szys")!=-1||baseURL.indexOf("dxys")!=-1||baseURL.indexOf("ytys")!=-1||baseURL.indexOf("qnys")!=-1){var UA="Dart/2.15 (dart:io)"}else if(baseURL.indexOf(".vod")!=-1){var UA="okhttp/4.1.0"}else{var UA="Dalvik/2.1.0"}var 源码=getHttp(JSON.stringify({url:URL,head:{"User-Agent":UA}}));var 列表=e2Arr(源码,".json(data)");var 标题规则=".json(vod_name)";var 地址规则=".c(video_detail?id=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(vod_remarks).c().json(vod_time_add)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  430. "免嗅探规则":'eval(getVar("通用免嗅探"))'
  431. }
  432. },
  433. {
  434. "title":"api.php/app",
  435. "匹配":"api\\.php\\/app\\/",
  436. "rule":{
  437. "首页规则":'var 列表=getVar("源码").replace(/<.*?>/g,"").replace(/[\\s]*/g,"").match(/\\{"vod_id".*?\\}/g);var 标题规则=".json(vod_name)";var 地址规则=".c(video_detail?id=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(vod_remarks).c().json(vod_time_add)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  438. "筛选数据":'alert("请等待几秒...列表加载中");try{var resp=getHttp(JSON.stringify({url:getVar("baseURL")+"nav",head:{"User-Agent":getVar("当前UA")}}));}catch(err){alert("哦,报错了,错误描述:"+err.message);}var 主=e2Arr(resp,".json(list).or().json(data)");var a="";for(var i in 主){a=a+"+"+JSON.parse(主[i]).type_name+"="+JSON.parse(主[i]).type_id+"&class=&area=";var 类型=e2Rex(主[i],".json(type_extend).json(class)").split(",").filter(Boolean);if(类型.length>1){for(var j in 类型){a=a+"+"+JSON.parse(主[i]).type_name+"-"+类型[j]+"="+JSON.parse(主[i]).type_id+"&class="+类型[j]+"&area=";}}var 地区=e2Rex(主[i],".json(type_extend).json(area)").split(",").filter(Boolean);if(地区.length>1){for(var k in 地区){a=a+"+"+JSON.parse(主[i]).type_name+"-"+地区[k]+"="+JSON.parse(主[i]).type_id+"&class=&area="+地区[k];}}}var a="分类"+a;var b="";for(var i=1;i<50;i++){b=b+"+第"+i+"页="+i;}var b="翻页+"+b;a+"\\n"+b;',
  439. "分类规则":'var 列表=e2Arr(getVar("源码"),".json(list)");var 标题规则=".json(vod_name)";var 地址规则=".c(video_detail?id=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(vod_remarks).c().json(vod_time_add)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  440. "选集规则":'var 分类=e2Arr(getVar("源码"),".json(data).json(vod_url_with_player)");var 线路="";var 简介=e2Rex(getVar("源码"),".json(data).json(vod_content)");var 列表规则=".json(url).ct(#).z(.*?\\\\$.*?#)";var 标题规则=".json(name)";var 选集规则=".z2(\\\\(.+?\\\\)\\\\$)";var 选集地址规则=".z2(\\\\$\\\\(.+?\\\\)[#|\\"])";',
  441. "搜索规则":'var URL=baseURL+"search?pg=1&text="+getVar("KEY");if(baseURL.indexOf("api.php/app")!=-1||baseURL.indexOf("xgapp")!=-1||baseURL.indexOf("freekan")!=-1){var UA="Dart/2.14 (dart:io)"}else if(baseURL.indexOf("zsb")!=-1||baseURL.indexOf("fkxs")!=-1||baseURL.indexOf("xays")!=-1||baseURL.indexOf("xcys")!=-1||baseURL.indexOf("szys")!=-1||baseURL.indexOf("dxys")!=-1||baseURL.indexOf("ytys")!=-1||baseURL.indexOf("qnys")!=-1){var UA="Dart/2.15 (dart:io)"}else if(baseURL.indexOf(".vod")!=-1){var UA="okhttp/4.1.0"}else{var UA="Dalvik/2.1.0"}var 源码=getHttp(JSON.stringify({url:URL,head:{"User-Agent":UA}}));var 列表=e2Arr(源码,".json(list)");var 标题规则=".json(vod_name)";var 地址规则=".c(video_detail?id=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(vod_remarks).c().json(vod_time_add)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";',
  442. "免嗅探规则":'eval(getVar("通用免嗅探"))'
  443. }
  444. }
  445. ];
  446. function 匹配模板(item){
  447. var rex=new RegExp(item.匹配);
  448. return baseURL.search(rex)!=-1;
  449. }
  450. var baseURL=getVar("baseURL");
  451. if(e2Rex(getVar("CODE"),".json(type)")=="CMS"){
  452. var rule={};
  453. rule.首页规则='if(getVar("源码").indexOf("<rss")!=-1){var 列表=e2Arr(getVar("源码"),".xml(list video)");var 标题规则=".xml(name).ty(CDATA).tz2(])";var 地址规则=".c(?ac=videolist&ids=).xml(id).z(\\\\d+)";var 图片规则=".xml(pic).t().z(\\\\S.*\\\\S).th( ##%20)";var 简介规则=".c(<font color=\\"#0997F7\\"><b>).xml(dt).t().ct(</b></font><br>)";var 图片底部规则=".xml(last).t()";var 左上规则=".tx(<p style=\\"background-color:#7091fc\\"><font color=\\"#FFFFFF\\" size=\\"40px\\">).xml(type).t().ct(</font></p>)";var 右上规则=".tx(<p style=\\"background-color:#CC00FF\\"><font color=\\"#FFFFFF\\">).xml(note).t().ct(</font></p>)";var NEXTPAGE="";var PREPAGE="";}else if(baseURL.indexOf("?")!=-1){var 列表=e2Arr(getVar("源码"),".json(list)");var 标题规则=".json(vod_name)";var 地址规则=".c(&ac=videolist&ids=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".c(<font color=\\"#0997F7\\"><b>).json(vod_play_from).ct(</b></font><br>)";var 图片底部规则=".json(vod_time)";var 左上规则=".tx(<p style=\\"background-color:#7091fc\\"><font color=\\"#FFFFFF\\" size=\\"40px\\">).json(type_name).ct(</font></p>)";var 右上规则=".tx(<p style=\\"background-color:#CC00FF\\"><font color=\\"#FFFFFF\\">).json(vod_remarks).ct(</font></p>)";var NEXTPAGE="";var PREPAGE="";}else{var 列表=e2Arr(getVar("源码"),".json(list)");var 标题规则=".json(vod_name)";var 地址规则=".c(?ac=videolist&ids=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".c(<font color=\\"#0997F7\\"><b>).json(vod_play_from).ct(</b></font><br>)";var 图片底部规则=".json(vod_time)";var 左上规则=".tx(<p style=\\"background-color:#7091fc\\"><font color=\\"#FFFFFF\\" size=\\"40px\\">).json(type_name).ct(</font></p>)";var 右上规则=".tx(<p style=\\"background-color:#CC00FF\\"><font color=\\"#FFFFFF\\">).json(vod_remarks).ct(</font></p>)";var NEXTPAGE="";var PREPAGE="";}';
  454. rule.筛选数据='alert("请等待几秒...列表加载中");try{var 源码=getHttp(getVar("首页地址"));}catch(err){alert("哦,报错了,错误描述:"+err.message);}var baseURL=getVar("baseURL");if(源码.indexOf("<rss")!=-1){var 列表=e2Arr(源码,".xml(class ty)");var a="";for(var i in 列表){var t=e2Rex(列表[i],".t()");var id=e2Rex(列表[i],".a(id)");a=a+"+"+t+"=&t="+id;}var b="";for(var i=1;i<50;i++){b=b+"+第"+i+"页="+i;}var a="分类+全部="+a;var b="翻页"+b;a+"\\n"+b;}else if(baseURL.indexOf("?")!=-1){var 列表=e2Arr(源码,".json(class)");var a="";for(var i in 列表){var t=e2Rex(列表[i],".json(type_name)");var id=e2Rex(列表[i],".json(type_id)");a=a+"+"+t+"=&t="+id;}var b="";for(var i=1;i<50;i++){b=b+"+第"+i+"页="+i;}var a="分类+全部="+a;var b="翻页"+b;a+"\\n"+b;}else{var 列表=e2Arr(源码.replace(/<.*?>/g,""),".json(class)");if(列表[0]){var a="";for(var i in 列表){var t=e2Rex(列表[i],".json(type_name).or().json(type_title)");var id=e2Rex(列表[i],".json(type_id)");a=a+"+"+t+"=&t="+id;}}else{var a="+电影=&t=1+电视剧=&t=2+综艺=&t=3+动漫=&t=4+动作片=&t=6+喜剧片=&t=7+爱情片=&t=8+科幻片=&t=9+恐怖片=&t=10+剧情片=&t=11+国产剧=&t=13+港台剧=&t=14+日韩剧=&t=15+欧美剧=&t=16";}var b="";for(var i=1;i<50;i++){b=b+"+第"+i+"页="+i;}var a="分类+全部="+a;var b="翻页"+b;a+"\\n"+b;}';
  455. rule.分类规则='if(getVar("源码").indexOf("<rss")!=-1){var 列表=e2Arr(getVar("源码"),".xml(list video)");var 标题规则=".xml(name).ty(CDATA).tz2(])";var 地址规则=".c(?ac=videolist&ids=).xml(id).z(\\\\d+)";var 图片规则=".xml(pic).t().z(\\\\S.*\\\\S).th( ##%20)";var 简介规则=".c(<font color=\\"#0997F7\\"><b>).xml(dt).t().ct(</b></font><br>)";var 图片底部规则=".xml(last).t()";var 左上规则=".tx(<p style=\\"background-color:#7091fc\\"><font color=\\"#FFFFFF\\" size=\\"40px\\">).xml(type).t().ct(</font></p>)";var 右上规则=".tx(<p style=\\"background-color:#CC00FF\\"><font color=\\"#FFFFFF\\">).xml(note).t().ct(</font></p>)";var NEXTPAGE="";var PREPAGE="";}else if(baseURL.indexOf("?")!=-1){var 列表=e2Arr(getVar("源码"),".json(list)");var 标题规则=".json(vod_name)";var 地址规则=".c(&ac=videolist&ids=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".c(<font color=\\"#0997F7\\"><b>).json(vod_play_from).ct(</b></font><br>)";var 图片底部规则=".json(vod_time)";var 左上规则=".tx(<p style=\\"background-color:#7091fc\\"><font color=\\"#FFFFFF\\" size=\\"40px\\">).json(type_name).ct(</font></p>)";var 右上规则=".tx(<p style=\\"background-color:#CC00FF\\"><font color=\\"#FFFFFF\\">).json(vod_remarks).ct(</font></p>)";var NEXTPAGE="";var PREPAGE="";}else{var 列表=e2Arr(getVar("源码"),".json(list)");var 标题规则=".json(vod_name)";var 地址规则=".c(?ac=videolist&ids=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".c(<font color=\\"#0997F7\\"><b>).json(vod_play_from).ct(</b></font><br>)";var 图片底部规则=".json(vod_time)";var 左上规则=".tx(<p style=\\"background-color:#7091fc\\"><font color=\\"#FFFFFF\\" size=\\"40px\\">).json(type_name).ct(</font></p>)";var 右上规则=".tx(<p style=\\"background-color:#CC00FF\\"><font color=\\"#FFFFFF\\">).json(vod_remarks).ct(</font></p>)";var NEXTPAGE="";var PREPAGE="";}';
  456. rule.选集规则='var type="CMS";if(getVar("源码").indexOf("<rss")!=-1){var 分类=e2Arr(getVar("源码"),".get(dd)");var 简介=e2Rex(getVar("源码"),".c(类型:).xml(type).c(<br>演员表:).xml(actor).c(<br>简介:).xml(des)");var 列表规则=".z2(CDATA\\\\[\\\\([\\\\s\\\\S]*?\\\\)[#]*?\\\\]).fg(#)";var 标题规则=".a(flag)";var 选集规则=".tz($)";var 选集地址规则=".z2(\\\\$\\\\([^\\$|&]*\\\\)).or().z(.*)";}else{var 分类=e2Arr(getVar("源码").replace(/<.*?>/g,""),".json(list).json(vod_play_url).fg(\\\\$\\\\$\\\\$)");var 线路=e2Arr(getVar("源码").replace(/<.*?>/g,""),".json(list).json(vod_play_from).fg(\\\\$\\\\$\\\\$)");var 选集地址规则=".z2(\\\\$\\\\(.*\\\\)).or().z(.*)";var 简介=e2Rex(getVar("源码"),".c(演员表:).json(list).json(vod_actor).c(<br>简介:).json(list).json(vod_content)");var 列表规则=".fg(#)";var 标题规则=".t()";var 选集规则=".tz($)";}';
  457. rule.搜索规则='if(baseURL.indexOf("?")!=-1){var URL=baseURL+"&ac=videolist&wd="+getVar("KEY");}else{var URL=baseURL+"?ac=videolist&wd="+getVar("KEY");}var 源码=getHttp(URL);if(源码.indexOf("<rss")!=-1){var 列表=e2Arr(源码,".xml(video)");var 标题规则=".xml(name).ty(CDATA).tz2(])";var 地址规则=".c(?ac=videolist&ids=).xml(id).z(\\d+)";var 图片规则=".xml(pic).t().z(http.*\\S).th( ##%20)";var 简介规则=".c(<font color=\\"#0997F7\\"><b>).xml(dt).t().c(</b></font><br>).xml(last).t()";var NEXTPAGE="";var PREPAGE="";}else{var 列表=e2Arr(源码.replace(/<.*?>/g,""),".json(list)");var 标题规则=".json(vod_name)";var 地址规则=".c(?ac=videolist&ids=).json(vod_id)";var 图片规则=".json(vod_pic)";var 简介规则=".json(type_name).c().json(vod_time).c().json(vod_remarks)";var 图片底部规则="";var 左上规则="";var 右上规则="";var NEXTPAGE="";var PREPAGE="";}';
  458. rule.免嗅探规则='eval(getVar("通用免嗅探"))';
  459. JSON.stringify(rule);
  460. }else{
  461. JSON.stringify(模板库.find(匹配模板).rule);
  462. }
  463. ######读取本地规则6
  464. if(getVar("QJS")&&getVar("QJS")!="null"){
  465. eval(getVar("QJS"));
  466. }else{
  467. eval(e2Rex(getHttp('https://egwang186.coding.net/p/egwang186/d/iptv/git/raw/master/aliyun/QJS.js'),'.dn64()'));
  468. }
  469. var filename='一个影视本地规则.txt';
  470. _.read(filename);
  471. ######写入本地规则7
  472. if(getVar("QJS")&&getVar("QJS")!="null"){
  473. eval(getVar("QJS"));
  474. }else{
  475. eval(e2Rex(getHttp('https://egwang186.coding.net/p/egwang186/d/iptv/git/raw/master/aliyun/QJS.js'),'.dn64()'));
  476. }
  477. var filename='一个影视本地规则.txt';
  478. var 记录=[];
  479. if(getVar("KEY").length>10){
  480. var rule=e2Rex(getVar("KEY"),".json(rule)")||e2Rex(getVar("KEY"),".dn64().json(rule)");
  481. if(rule){
  482. var title=e2Rex(getVar("KEY"),".json(title)")||e2Rex(getVar("KEY"),".dn64().json(title)");
  483. var img=e2Rex(getVar("KEY"),".json(img)")||e2Rex(getVar("KEY"),".dn64().json(img)");
  484. var baseURL=e2Rex(getVar("KEY"),".json(baseURL)")||e2Rex(getVar("KEY"),".dn64().json(baseURL)");
  485. var 分类地址=e2Rex(getVar("KEY"),".json(分类地址)")||e2Rex(getVar("KEY"),".dn64().json(分类地址)");
  486. var 首页地址=e2Rex(getVar("KEY"),".json(首页地址)")||e2Rex(getVar("KEY"),".dn64().json(首页地址)");
  487. var type="网页类";
  488. 记录.push({title:title,img:img,baseURL:baseURL,分类地址:分类地址,首页地址:首页地址,type:type,rule:rule});
  489. }else{
  490. if(e2Rex(getVar("KEY"),".json(title)")&&e2Rex(getVar("KEY"),".json(url)")&&e2Rex(getVar("KEY"),".json(img)")){
  491. var title=e2Rex(getVar("KEY"),".json(title)");var baseURL='"'+e2Rex(getVar("KEY"),".json(url)")+'";';var img=e2Rex(getVar("KEY"),".json(img)");
  492. if(baseURL.search(/api\.php\/app\//)!=-1||baseURL.search(/xgapp\.php\/v/)!=-1){
  493. var 分类地址='getVar("baseURL")+"video?tid=分类&lang=&year=&pg=翻页";';
  494. var 首页地址='getVar("baseURL")+"index_video?token=";';
  495. var type="小龟";
  496. }else if(baseURL.search(/\.php\/.+?\.vod/)!=-1){
  497. var 分类地址='getVar("baseURL")+"?type=分类&lang=&year=&page=翻页";';
  498. var 首页地址='getVar("baseURL")+"/vodPhbAll";';
  499. var type="v1.vod";
  500. }else if(baseURL.search(/api\.php\/.+?\/vod\//)!=-1){
  501. var 分类地址='getVar("baseURL")+"?ac=list&class=分类&page=翻页";';
  502. var 首页地址='getVar("baseURL")+"?ac=list&class=&start=&area=&type=&page=1";';
  503. var type="iptv";
  504. }else{
  505. alert("暂未适配");
  506. }
  507. 记录.push({title:title,img:img,baseURL:baseURL,分类地址:分类地址,首页地址:首页地址,type:type});
  508. }else if(getVar("KEY").indexOf(",http")!=-1){
  509. var 输入条目=getVar("KEY").match(/.+,http.+/g);
  510. for(var j in 输入条目){
  511. var title=e2Rex(输入条目[j],".tz(,)");var baseURL='"'+e2Rex(输入条目[j],".ty(,)")+'";';var img="http://1.117.152.239:39000/tupian.php?text="+title;
  512. if(baseURL.indexOf("?")!=-1){
  513. var 分类地址='getVar("baseURL")+"&ac=videolist分类&pg=翻页";';
  514. var 首页地址='getVar("baseURL")+"&ac=list&pg=1";';
  515. var type="CMS";
  516. }else{
  517. var 分类地址='getVar("baseURL")+"?ac=videolist分类&pg=翻页";';
  518. if(baseURL.indexOf("yanaifei.cn")!=-1){
  519. var 首页地址='getVar("baseURL")+"?ac=videolist&pg=1";';
  520. }else{
  521. var 首页地址='getVar("baseURL")+"?ac=list&pg=1";';
  522. }
  523. var type="CMS";
  524. }
  525. 记录.push({title:title,img:img,baseURL:baseURL,分类地址:分类地址,首页地址:首页地址,type:type});
  526. }
  527. }else{
  528. alert("请输入正确规则格式:\n1,APP类:{\"title\":\"播放呀\",\"url\":\"https:\/\/www.bofangya.com\/xgapp.php\/v1\/\",\"img\":\"https:\/\/inmemory.coding.net\/p\/InMemory\/d\/MBrowser\/git\/raw\/master\/AppFile\/AppIcon\/播放呀.png\"}\n2,CMS类:xx资源,http..... \n3,网页类:参考内置网页源模板");
  529. }
  530. }
  531. if(_.read(filename)){
  532. var 新记录=JSON.parse(_.read(filename));
  533. }else{
  534. var 新记录=[];
  535. }
  536. for(var i in 记录){
  537. var 当前条目=[];当前条目.push(记录[i]);
  538. if(新记录.length==0) {
  539. 新记录.push({title:记录[i].type,data:当前条目});
  540. }else{
  541. let res=新记录.some(item=>{
  542. //判断类型,有就添加到当前项
  543. if(item.title == 记录[i].type){
  544. item.data=当前条目.concat(item.data.filter(d=>d.baseURL!=记录[i].baseURL));
  545. return true
  546. }
  547. });
  548. if (!res) {
  549. //如果没找相同类型添加一个类型
  550. 新记录.push({title:记录[i].type,data:当前条目});
  551. }
  552. }
  553. }
  554. _.write(JSON.stringify(新记录),filename);
  555. _.read(filename);
  556. }else{
  557. alert("请输入正确规则格式:\n1,APP类:{\"title\":\"播放呀\",\"url\":\"https:\/\/www.bofangya.com\/xgapp.php\/v1\/\",\"img\":\"https:\/\/inmemory.coding.net\/p\/InMemory\/d\/MBrowser\/git\/raw\/master\/AppFile\/AppIcon\/播放呀.png\"}\n2,CMS类:xx资源,http..... \n3,网页类:参考内置网页源模板");
  558. }
  559. ######COOKIE8
  560. var baseURL=getVar("baseURL");
  561. var cm=android.webkit.CookieManager.getInstance();
  562. var COOKIE=cm.getCookie(baseURL);
  563. COOKIE;
  564. ######QJS9
  565. ZXZhbChmdW5jdGlvbihlLGYsYSxkLGMsZyl7Yz1mdW5jdGlvbihiKXtyZXR1cm4oYjxmPyIiOmMocGFyc2VJbnQoYi9mKSkpKygzNTwoYiU9Zik/U3RyaW5nLmZyb21DaGFyQ29kZShiKzI5KTpiLnRvU3RyaW5nKDM2KSl9O2lmKCEiIi5yZXBsYWNlKC9eLyxTdHJpbmcpKXtmb3IoO2EtLTspZ1tjKGEpXT1kW2FdfHxjKGEpO2Q9W2Z1bmN0aW9uKGIpe3JldHVybiBnW2JdfV07Yz1mdW5jdGlvbigpe3JldHVybiJcXHcrIn07YT0xfWZvcig7YS0tOylkW2FdJiYoZT1lLnJlcGxhY2UobmV3IFJlZ0V4cCgiXFxiIitjKGEpKyJcXGIiLCJnIiksZFthXSkpO3JldHVybiBlfSgiKDUoKXszIDY9e307MyBtPTEuMDszIHE9Ui4xdi4xdy4xeC4xeTszIHI9Ui4xdi4xdy4xeC4xeSgpLmMuMjc7MyBzPTF6LjI4LjI5LjJhKCk7MyB0PVMuMmI7MyB1PVMuMUE7MyB2PXQuVC4yYzszIHc9MUIoKSt2KycyZCcrditFKCkuVS5WKDAsNCkrJyQkJCcrRSgpLjE4K3Y7SD0oMUMpPT4xRCAxQz09PScyZSc7NSAxOShhKXsyZiAxYT0xRCBhOzcgYSE9SSYmKDFhPT0nMmcnfHwxYT09JzUnKX0zIHk9Uy4yaC4yaTszIHo9OCB5L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