小美.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. var rule = {
  2. title:'keke',
  3. host:'https://www.keke9.app',
  4. homeUrl:'/',
  5. url: '',
  6. filter_url:'',
  7. filter:{
  8. "1":[{"key":"class","name":"类型","value":[{"n":"全部","v":"1-----3-1"},{"n":"Netflix","v":"1-NETFLIX----3-1"},{"n":"剧情","v":"1-%E5%89%A7%E6%83%85----3-1"},{"n":"喜剧","v":"1-%E5%96%9C%E5%89%A7----3-1"},{"n":"动作","v":"1-%E5%8A%A8%E4%BD%9C----3-1"},{"n":"爱情","v":"1-%E7%88%B1%E6%83%85----3-1"},{"n":"恐怖","v":"1-%E6%81%90%E6%80%96----3-1"},{"n":"惊悚","v":"1-%E6%83%8A%E6%82%9A----3-1"},{"n":"犯罪","v":"1-%E7%8A%AF%E7%BD%AA----3-1"},{"n":"科幻","v":"1-%E7%A7%91%E5%B9%BB----3-1"},{"n":"悬疑","v":"1-%E6%82%AC%E7%96%91----3-1"},{"n":"奇幻","v":"1-%E5%A5%87%E5%B9%BB----3-1"},{"n":"冒险","v":"1-%E5%86%92%E9%99%A9----3-1"},{"n":"战争","v":"1-%E6%88%98%E4%BA%89----3-1"},{"n":"历史","v":"1-%E5%8E%86%E5%8F%B2----3-1"},{"n":"古装","v":"1-%E5%8F%A4%E8%A3%85----3-1"},{"n":"家庭","v":"1-%E5%AE%B6%E5%BA%AD----3-1"},{"n":"传记","v":"1-%E4%BC%A0%E8%AE%B0----3-1"},{"n":"武侠","v":"1-%E6%AD%A6%E4%BE%A0----3-1"},{"n":"歌舞","v":"1-%E6%AD%8C%E8%88%9E----3-1"},{"n":"短片","v":"1-%E7%9F%AD%E7%89%87----3-1"},{"n":"动画","v":"1-%E5%8A%A8%E7%94%BB----3-1"},{"n":"儿童","v":"1-%E5%84%BF%E7%AB%A5----3-1"},{"n":"职场","v":"1-%E8%81%8C%E5%9C%BA----3-1"}]},{"key":"class","name":"地区","value":[{"n":"全部","v":"1-----3-1"},{"n":"大陆","v":"1--%E4%B8%AD%E5%9B%BD%E5%A4%A7%E9%99%86---3-1"},{"n":"香港","v":"1--%E4%B8%AD%E5%9B%BD%E9%A6%99%E6%B8%AF---3-1"},{"n":"台湾","v":"1--%E4%B8%AD%E5%9B%BD%E5%8F%B0%E6%B9%BE---3-1"},{"n":"美国","v":"1--%E7%BE%8E%E5%9B%BD---3-1"},{"n":"日本","v":"1--%E6%97%A5%E6%9C%AC---3-1"},{"n":"韩国","v":"1--%E9%9F%A9%E5%9B%BD---3-1"},{"n":"英国","v":"1--%E8%8B%B1%E5%9B%BD---3-1"},{"n":"法国","v":"1--%E6%B3%95%E5%9B%BD---3-1"},{"n":"德国","v":"1--%E5%BE%B7%E5%9B%BD---3-1"},{"n":"印度","v":"1--%E5%8D%B0%E5%BA%A6---3-1"},{"n":"泰国","v":"1--%E6%B3%B0%E5%9B%BD---3-1"},{"n":"丹麦","v":"1--%E4%B8%B9%E9%BA%A6---3-1"},{"n":"瑞典","v":"1--%E7%91%9E%E5%85%B8---3-1"},{"n":"巴西","v":"1--%E5%B7%B4%E8%A5%BF---3-1"},{"n":"加拿大","v":"1--%E5%8A%A0%E6%8B%BF%E5%A4%A7---3-1"},{"n":"俄罗斯","v":"1--%E4%BF%84%E7%BD%97%E6%96%AF---3-1"},{"n":"意大利","v":"1--%E6%84%8F%E5%A4%A7%E5%88%A9---3-1"},{"n":"比利时","v":"1--%E6%AF%94%E5%88%A9%E6%97%B6---3-1"},{"n":"爱尔兰","v":"1--%E7%88%B1%E5%B0%94%E5%85%B0---3-1"},{"n":"西班牙","v":"1--%E8%A5%BF%E7%8F%AD%E7%89%99---3-1"},{"n":"澳大利亚","v":"1--%E6%BE%B3%E5%A4%A7%E5%88%A9%E4%BA%9A---3-1"},{"n":"其他","v":"1--%E5%85%B6%E4%BB%96---3-1"}]},{"key":"class","name":"语言","value":[{"n":"全部","v":"1-----3-1"},{"n":"国语","v":"1---%E5%9B%BD%E8%AF%AD--3-1"},{"n":"粤语","v":"1---%E7%B2%A4%E8%AF%AD--3-1"},{"n":"英语","v":"1---%E8%8B%B1%E8%AF%AD--3-1"},{"n":"日语","v":"1---%E6%97%A5%E8%AF%AD--3-1"},{"n":"韩语","v":"1---%E9%9F%A9%E8%AF%AD--3-1"},{"n":"法语","v":"1---%E6%B3%95%E8%AF%AD--3-1"},{"n":"其他","v":"1---%E5%85%B6%E4%BB%96--3-1"}]},{"key":"class","name":"年份","value":[{"n":"全部","v":"1-----3-1"},{"n":"2024","v":"1----2024-3-1"},{"n":"2023","v":"1----2023-3-1"},{"n":"2022","v":"1----2022-3-1"},{"n":"2021","v":"1----2021-3-1"},{"n":"2020","v":"1----2020-3-1"},{"n":"10年代","v":"1----2010_2019-3-1"},{"n":"00年代","v":"1----2000_2009-3-1"},{"n":"90年代","v":"1----1990_1999-3-1"},{"n":"80年代","v":"1----1980_1989-3-1"},{"n":"更早","v":"1----0_1979-3-1"}]},{"key":"class","name":"排序","value":[{"n":"综合","v":"1-----1-1"},{"n":"最新","v":"1-----2-1"},{"n":"最热","v":"1-----3-1"},{"n":"评分","v":"1-----4-1"}]}],
  9. '2':[{"key":"class","name":"类型","value":[{"n":"全部","v":"2-----3-1"},{"n":"Netflix","v":"2-Netflix----3-1"},{"n":"剧情","v":"2-%E5%89%A7%E6%83%85----3-1"},{"n":"爱情","v":"2-%E7%88%B1%E6%83%85----3-1"},{"n":"喜剧","v":"2-%E5%96%9C%E5%89%A7----3-1"},{"n":"犯罪","v":"2-%E7%8A%AF%E7%BD%AA----3-1"},{"n":"悬疑","v":"2-%E6%82%AC%E7%96%91----3-1"},{"n":"古装","v":"2-%E5%8F%A4%E8%A3%85----3-1"},{"n":"动作","v":"2-%E5%8A%A8%E4%BD%9C----3-1"},{"n":"家庭","v":"2-%E5%AE%B6%E5%BA%AD----3-1"},{"n":"惊悚","v":"2-%E6%83%8A%E6%82%9A----3-1"},{"n":"奇幻","v":"2-%E5%A5%87%E5%B9%BB----3-1"},{"n":"美剧","v":"2-%E7%BE%8E%E5%89%A7----3-1"},{"n":"科幻","v":"2-%E7%A7%91%E5%B9%BB----3-1"},{"n":"历史","v":"2-%E5%8E%86%E5%8F%B2----3-1"},{"n":"战争","v":"2-%E6%88%98%E4%BA%89----3-1"},{"n":"韩剧","v":"2-%E9%9F%A9%E5%89%A7----3-1"},{"n":"武侠","v":"2-%E6%AD%A6%E4%BE%A0----3-1"},{"n":"言情","v":"2-%E8%A8%80%E6%83%85----3-1"},{"n":"恐怖","v":"2-%E6%81%90%E6%80%96----3-1"},{"n":"冒险","v":"2-%E5%86%92%E9%99%A9----3-1"},{"n":"都市","v":"2-%E9%83%BD%E5%B8%82----3-1"},{"n":"职场","v":"2-%E8%81%8C%E5%9C%BA----3-1"}]},{"key":"class","name":"地区","value":[{"n":"地区","v":"2-----3-1"},{"n":"大陆","v":"2--%E4%B8%AD%E5%9B%BD%E5%A4%A7%E9%99%86---3-1"},{"n":"香港","v":"2--%E4%B8%AD%E5%9B%BD%E9%A6%99%E6%B8%AF---3-1"},{"n":"韩国","v":"2--%E9%9F%A9%E5%9B%BD---3-1"},{"n":"美国","v":"2--%E7%BE%8E%E5%9B%BD---3-1"},{"n":"日本","v":"2--%E6%97%A5%E6%9C%AC---3-1"},{"n":"法国","v":"2--%E6%B3%95%E5%9B%BD---3-1"},{"n":"英国","v":"2--%E8%8B%B1%E5%9B%BD---3-1"},{"n":"德国","v":"2--%E5%BE%B7%E5%9B%BD---3-1"},{"n":"台湾","v":"2--%E4%B8%AD%E5%9B%BD%E5%8F%B0%E6%B9%BE---3-1"},{"n":"泰国","v":"2--%E6%B3%B0%E5%9B%BD---3-1"},{"n":"印度","v":"2--%E5%8D%B0%E5%BA%A6---3-1"},{"n":"其他","v":"2--%E5%85%B6%E4%BB%96---3-1"}]},{"key":"class","name":"语言","value":[{"n":"全部","v":"2-----3-1"},{"n":"国语","v":"2---%E5%9B%BD%E8%AF%AD--3-1"},{"n":"粤语","v":"2---%E7%B2%A4%E8%AF%AD--3-1"},{"n":"英语","v":"2---%E8%8B%B1%E8%AF%AD--3-1"},{"n":"日语","v":"2---%E6%97%A5%E8%AF%AD--3-1"},{"n":"韩语","v":"2---%E9%9F%A9%E8%AF%AD--3-1"},{"n":"法语","v":"2---%E6%B3%95%E8%AF%AD--3-1"},{"n":"其他","v":"2---%E5%85%B6%E4%BB%96--3-1"}]},{"key":"class","name":"年份","value":[{"n":"全部","v":"2-----3-1"},{"n":"2024","v":"2----2024-3-1"},{"n":"2023","v":"2----2023-3-1"},{"n":"2022","v":"2----2022-3-1"},{"n":"2021","v":"2----2021-3-1"},{"n":"2020","v":"2----2020-3-1"},{"n":"10年代","v":"2----2010_2019-3-1"},{"n":"00年代","v":"2----2000_2009-3-1"},{"n":"90年代","v":"2----1990_1999-3-1"},{"n":"80年代","v":"2----1980_1989-3-1"},{"n":"更早","v":"2----0_1979-3-1"}]},{"key":"class","name":"排序","value":[{"n":"综合","v":"2-----1-1"},{"n":"最新","v":"2-----2-1"},{"n":"最热","v":"2-----3-1"},{"n":"评分","v":"2-----4-1"}]}],
  10. '3':[{"key":"class","name":"类型","value":[{"n":"全部","v":"3-----3-1"},{"n":"Netflix","v":"3-Netflix----3-1"},{"n":"动态漫画","v":"3-%E5%8A%A8%E6%80%81%E6%BC%AB%E7%94%BB----3-1"},{"n":"剧情","v":"3-%E5%89%A7%E6%83%85----3-1"},{"n":"动画","v":"3-%E5%8A%A8%E7%94%BB----3-1"},{"n":"喜剧","v":"3-%E5%96%9C%E5%89%A7----3-1"},{"n":"冒险","v":"3-%E5%86%92%E9%99%A9----3-1"},{"n":"动作","v":"3-%E5%8A%A8%E4%BD%9C----3-1"},{"n":"奇幻","v":"3-%E5%A5%87%E5%B9%BB----3-1"},{"n":"科幻","v":"3-%E7%A7%91%E5%B9%BB----3-1"},{"n":"儿童","v":"3-%E5%84%BF%E7%AB%A5----3-1"},{"n":"搞笑","v":"3-%E6%90%9E%E7%AC%91----3-1"},{"n":"爱情","v":"3-%E7%88%B1%E6%83%85----3-1"},{"n":"家庭","v":"3-%E5%AE%B6%E5%BA%AD----3-1"},{"n":"短片","v":"3-%E7%9F%AD%E7%89%87----3-1"},{"n":"热血","v":"3-%E7%83%AD%E8%A1%80----3-1"},{"n":"益智","v":"3-%E7%9B%8A%E6%99%BA----3-1"},{"n":"悬疑","v":"3-%E6%82%AC%E7%96%91----3-1"},{"n":"经典","v":"3-%E7%BB%8F%E5%85%B8----3-1"},{"n":"校园","v":"3-%E6%A0%A1%E5%9B%AD----3-1"},{"n":"Anime","v":"3-Anime----3-1"},{"n":"运动","v":"3-%E8%BF%90%E5%8A%A8----3-1"},{"n":"亲子","v":"3-%E4%BA%B2%E5%AD%90----3-1"},{"n":"青春","v":"3-%E9%9D%92%E6%98%A5----3-1"},{"n":"恋爱","v":"3-%E6%81%8B%E7%88%B1----3-1"},{"n":"武侠","v":"3-%E6%AD%A6%E4%BE%A0----3-1"},{"n":"惊悚","v":"3-%E6%83%8A%E6%82%9A----3-1"}]},{"key":"class","name":"地区","value":[{"n":"全部","v":"3-----3-1"},{"n":"日本","v":"3--%E6%97%A5%E6%9C%AC---3-1"},{"n":"大陆","v":"3--%E4%B8%AD%E5%9B%BD%E5%A4%A7%E9%99%86---3-1"},{"n":"台湾","v":"3--%E4%B8%AD%E5%9B%BD%E5%8F%B0%E6%B9%BE---3-1"},{"n":"美国","v":"3--%E7%BE%8E%E5%9B%BD---3-1"},{"n":"香港","v":"3--%E4%B8%AD%E5%9B%BD%E9%A6%99%E6%B8%AF---3-1"},{"n":"韩国","v":"3--%E9%9F%A9%E5%9B%BD---3-1"},{"n":"英国","v":"3--%E8%8B%B1%E5%9B%BD---3-1"},{"n":"法国","v":"3--%E6%B3%95%E5%9B%BD---3-1"},{"n":"德国","v":"3--%E5%BE%B7%E5%9B%BD---3-1"},{"n":"印度","v":"3--%E5%8D%B0%E5%BA%A6---3-1"},{"n":"泰国","v":"3--%E6%B3%B0%E5%9B%BD---3-1"},{"n":"丹麦","v":"3--%E4%B8%B9%E9%BA%A6---3-1"},{"n":"瑞典","v":"3--%E7%91%9E%E5%85%B8---3-1"},{"n":"巴西","v":"3--%E5%B7%B4%E8%A5%BF---3-1"},{"n":"加拿大","v":"3--%E5%8A%A0%E6%8B%BF%E5%A4%A7---3-1"},{"n":"俄罗斯","v":"3--%E4%BF%84%E7%BD%97%E6%96%AF---3-1"},{"n":"意大利","v":"3--%E6%84%8F%E5%A4%A7%E5%88%A9---3-1"},{"n":"比利时","v":"3--%E6%AF%94%E5%88%A9%E6%97%B6---3-1"},{"n":"爱尔兰","v":"3--%E7%88%B1%E5%B0%94%E5%85%B0---3-1"},{"n":"西班牙","v":"3--%E8%A5%BF%E7%8F%AD%E7%89%99---3-1"},{"n":"澳大利亚","v":"3--%E6%BE%B3%E5%A4%A7%E5%88%A9%E4%BA%9A---3-1"},{"n":"其他","v":"3--%E5%85%B6%E4%BB%96---3-1"}]},{"key":"class","name":"语言","value":[{"n":"全部","v":"3-----3-1"},{"n":"国语","v":"3---%E5%9B%BD%E8%AF%AD--3-1"},{"n":"粤语","v":"3---%E7%B2%A4%E8%AF%AD--3-1"},{"n":"英语","v":"3---%E8%8B%B1%E8%AF%AD--3-1"},{"n":"日语","v":"3---%E6%97%A5%E8%AF%AD--3-1"},{"n":"韩语","v":"3---%E9%9F%A9%E8%AF%AD--3-1"},{"n":"法语","v":"3---%E6%B3%95%E8%AF%AD--3-1"},{"n":"其他","v":"3---%E5%85%B6%E4%BB%96--3-1"}]},{"key":"class","name":"年份","value":[{"n":"全部","v":"3-----3-1"},{"n":"2024","v":"3----2024-3-1"},{"n":"2023","v":"3----2023-3-1"},{"n":"2022","v":"3----2022-3-1"},{"n":"2021","v":"3----2021-3-1"},{"n":"2020","v":"3----2020-3-1"},{"n":"10年代","v":"3----2010_2019-3-1"},{"n":"00年代","v":"3----2000_2009-3-1"},{"n":"90年代","v":"3----1990_1999-3-1"},{"n":"80年代","v":"3----1980_1989-3-1"},{"n":"更早","v":"3----0_1979-3-1"}]},{"key":"class","name":"排序","value":[{"n":"综合","v":"3-----1-1"},{"n":"最新","v":"3-----2-1"},{"n":"最热","v":"3-----3-1"},{"n":"评分","v":"3-----4-1"}]}],
  11. '4':[{"key":"class","name":"类型","value":[{"n":"全部","v":"4-----3-1"},{"n":"纪录","v":"4-%E7%BA%AA%E5%BD%95----3-1"},{"n":"真人秀","v":"4-%E7%9C%9F%E4%BA%BA%E7%A7%80----3-1"},{"n":"记录","v":"4-%E8%AE%B0%E5%BD%95----3-1"},{"n":"脱口秀","v":"4-%E8%84%B1%E5%8F%A3%E7%A7%80----3-1"},{"n":"剧情","v":"4-%E5%89%A7%E6%83%85----3-1"},{"n":"历史","v":"4-%E5%8E%86%E5%8F%B2----3-1"},{"n":"喜剧","v":"4-%E5%96%9C%E5%89%A7----3-1"},{"n":"传记","v":"4-%E4%BC%A0%E8%AE%B0----3-1"},{"n":"相声","v":"4-%E7%9B%B8%E5%A3%B0----3-1"},{"n":"节目","v":"4-%E8%8A%82%E7%9B%AE----3-1"},{"n":"歌舞","v":"4-%E6%AD%8C%E8%88%9E----3-1"},{"n":"冒险","v":"4-%E5%86%92%E9%99%A9----3-1"},{"n":"运动","v":"4-%E8%BF%90%E5%8A%A8----3-1"},{"n":"Season","v":"4-Season----3-1"},{"n":"犯罪","v":"4-%E7%8A%AF%E7%BD%AA----3-1"},{"n":"短片","v":"4-%E7%9F%AD%E7%89%87----3-1"},{"n":"搞笑","v":"4-%E6%90%9E%E7%AC%91----3-1"},{"n":"晚会","v":"4-%E6%99%9A%E4%BC%9A----3-1"}]},{"key":"class","name":"地区","value":[{"n":"全部","v":"4-----3-1"},{"n":"大陆","v":"4--%E4%B8%AD%E5%9B%BD%E5%A4%A7%E9%99%86---3-1"},{"n":"香港","v":"4--%E4%B8%AD%E5%9B%BD%E9%A6%99%E6%B8%AF---3-1"},{"n":"台湾","v":"4--%E4%B8%AD%E5%9B%BD%E5%8F%B0%E6%B9%BE---3-1"},{"n":"美国","v":"4--%E7%BE%8E%E5%9B%BD---3-1"},{"n":"日本","v":"4--%E6%97%A5%E6%9C%AC---3-1"},{"n":"韩国","v":"4--%E9%9F%A9%E5%9B%BD---3-1"},{"n":"其他","v":"4--%E5%85%B6%E4%BB%96---3-1"}]},{"key":"class","name":"语言","value":[{"n":"全部","v":"4-----3-1"},{"n":"国语","v":"4---%E5%9B%BD%E8%AF%AD--3-1"},{"n":"粤语","v":"4---%E7%B2%A4%E8%AF%AD--3-1"},{"n":"英语","v":"4---%E8%8B%B1%E8%AF%AD--3-1"},{"n":"日语","v":"4---%E6%97%A5%E8%AF%AD--3-1"},{"n":"韩语","v":"4---%E9%9F%A9%E8%AF%AD--3-1"},{"n":"法语","v":"4---%E6%B3%95%E8%AF%AD--3-1"},{"n":"其他","v":"4---%E5%85%B6%E4%BB%96--3-1"}]},{"key":"class","name":"年份","value":[{"n":"全部","v":"4-----3-1"},{"n":"2024","v":"4----2024-3-1"},{"n":"2023","v":"4----2023-3-1"},{"n":"2022","v":"4----2022-3-1"},{"n":"2021","v":"4----2021-3-1"},{"n":"2020","v":"4----2020-3-1"},{"n":"10年代","v":"4----2010_2019-3-1"},{"n":"00年代","v":"4----2000_2009-3-1"},{"n":"90年代","v":"4----1990_1999-3-1"},{"n":"80年代","v":"4----1980_1989-3-1"},{"n":"更早","v":"4----0_1979-3-1"}]},{"key":"class","name":"排序","value":[{"n":"综合","v":"4-----1-1"},{"n":"最新","v":"4-----2-1"},{"n":"最热","v":"4-----3-1"},{"n":"评分","v":"4-----4-1"}]}],
  12. '6':[{"key":"class","name":"类型","value":[{"n":"类型","v":"6-----3-1"},{"n":"逆袭","v":"6-%E9%80%86%E8%A2%AD----3-1"},{"n":"甜宠","v":"6-%E7%94%9C%E5%AE%A0----3-1"},{"n":"虐恋","v":"6-%E8%99%90%E6%81%8B----3-1"},{"n":"穿越","v":"6-%E7%A9%BF%E8%B6%8A----3-1"},{"n":"重生","v":"6-%E9%87%8D%E7%94%9F----3-1"},{"n":"剧情","v":"6-%E5%89%A7%E6%83%85----3-1"},{"n":"科幻","v":"6-%E7%A7%91%E5%B9%BB----3-1"},{"n":"武侠","v":"6-%E6%AD%A6%E4%BE%A0----3-1"},{"n":"爱情","v":"6-%E7%88%B1%E6%83%85----3-1"},{"n":"动作","v":"6-%E5%8A%A8%E4%BD%9C----3-1"},{"n":"战争","v":"6-%E6%88%98%E4%BA%89----3-1"},{"n":"冒险","v":"6-%E5%86%92%E9%99%A9----3-1"}]},{"key":"class","name":"排序","value":[{"n":"综合","v":"6-----1-1"},{"n":"最新","v":"6-----2-1"},{"n":"最热","v":"6-----3-1"}]}]
  13. },
  14. searchUrl: '/e/search/index.php#tempid=1&tbname=article&mid=1&dopost=search&submit=&keyborad=**;post',
  15. searchable:1,
  16. quickSearch:1,
  17. filterable:1,
  18. headers:{
  19. 'User-Agent': 'PC_UA',
  20. 'Referer': 'https://www.keke9.app'
  21. },
  22. timeout:5000,
  23. class_name:'电影&连续剧&动漫&综艺&短剧',
  24. class_url:'1&2&3&4&6',
  25. play_parse:true,
  26. play_json:[{
  27. re:'*',
  28. json:{
  29. parse:0,
  30. jx:0
  31. }
  32. }],
  33. lazy:'',
  34. limit:6,
  35. 推荐:`js:
  36. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  37. let d = [];
  38. let html = request(input);
  39. let list = pdfa(html, '.module-item');
  40. list.forEach(it => {
  41. d.push({
  42. title: pdfh(it, 'img&&alt'),
  43. desc: pdfh(it, '.v-item-bottom&&Text'),
  44. pic_url:'https://vres.vukfnqr.com' + pdfh(it, '.lazy.lazyload&&data-original'),
  45. url: pd(it, 'a&&href',HOST)
  46. });
  47. });
  48. setResult(d);
  49. `,
  50. 一级:`js:
  51. function getFilter(fl){
  52. let idx = ["class","area","language","year","order"]
  53. let key = idx.find((o)=>{return fl[o]})
  54. if(key){
  55. return fl[key].substr(0,fl[key].length-1)
  56. }else{
  57. return MY_CATE+'-----3-'
  58. }
  59. }
  60. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  61. let d = [];
  62. let fl = cateObj.extend
  63. //input = rule.homeUrl + 'show/'+ MY_CATE + '-----3-' + MY_PAGE + '.html';
  64. input = rule.homeUrl + 'show/' + getFilter(fl) + MY_PAGE + '.html';
  65. let html = request(input);
  66. let list = pdfa(html, '.module-item');
  67. list.forEach(it => {
  68. d.push({
  69. title:pdfh(it, 'img&&alt'),
  70. desc: pdfh(it, '.v-item-bottom&&Text'),
  71. pic_url:'https://vres.vukfnqr.com' + pdfh(it, '.lazy.lazyload&&data-original'),
  72. url: pd(it, 'a&&href',HOST)
  73. });
  74. });
  75. setResult(d);
  76. `,
  77. play_parse:true,
  78. 二级:`js:
  79. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  80. let html = request(input);
  81. let playFrom = []
  82. let playUrl = []
  83. let slide = pdfa(html,'.source-box .swiper-slide');
  84. let slideUrl = pdfa(html,'.episode-list');
  85. slide.forEach((o,i)=>{
  86. playFrom.push(pdfh(o,'a>.source-item-label&&Text'))
  87. })
  88. slideUrl.forEach((o,i)=>{
  89. let items = pdfa(o,'a');
  90. let tmp=[]
  91. items.forEach((it)=>{
  92. let name = pdfh(it,'a&&Text')
  93. let url = pd(it,'a&&href',HOST)
  94. tmp.push(name+'$'+url)
  95. })
  96. playUrl.push(tmp.join('#'))
  97. })
  98. VOD = {
  99. vod_id: '',
  100. vod_area:'',
  101. vod_year:'',
  102. vod_director:'',
  103. vod_actor:'',
  104. vod_content:'',
  105. vod_name: pdfh(html,'.detail-title&&Text'),
  106. vod_play_from:playFrom.join("$$$"),
  107. vod_play_url:playUrl.join("$$$"),
  108. vod_pic:'https://vres.vukfnqr.com' + pdfh(html, '.lazy.lazyload&&data-original')
  109. };
  110. `,
  111. lazy:`js:
  112. let htm = request(input);
  113. let url = htm.match(/src:(.*)/)[1].replace(/[\"|\",]/g, "").trim()
  114. input = {
  115. jx: 0,
  116. url: url,
  117. parse: 0,
  118. header: JSON.stringify({
  119. 'user-agent': MOBILE_UA,
  120. 'referer': HOST
  121. })
  122. };`,
  123. 搜索:` js:
  124. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  125. let d = [];
  126. input = rule.homeUrl + 'search?k=' + KEY;
  127. let html = request(input);
  128. let list = pdfa(html, '.search-result-list.fs-margin-section');
  129. list.forEach(it => {
  130. d.push({
  131. title: pdfh(it, 'a .search-result-item-main>.title&&Text'),
  132. desc: pdfh(it, 'a .search-result-item-main>.tags&&Text'),
  133. pic_url:'https://vres.vukfnqr.com' + pdfh(it, '.lazy.lazyload&&data-original'),
  134. url: pd(it, 'a&&href',HOST)
  135. });
  136. });
  137. setResult(d);`,
  138. }