diff --git a/app.py b/app.py index c7cf03b24c5f6b5e51404f7c1ef5f114b243a909..4b151d5b8d56ad07e3bf12eca69acf8fd3830afe 100644 --- a/app.py +++ b/app.py @@ -110,6 +110,7 @@ def vod(): # print(type(rule)) # print(ruleDict) logger.info(f'js装载耗时:{get_interval(t2)}毫秒') + # print(ruleDict) # print(rule) cms = CMS(ruleDict,db,RuleClass,PlayParse,app.config) wd = getParmas('wd') diff --git a/classes/cms.py b/classes/cms.py index 79a9ece86db2de88229049aee2c3ea34e8d53f60..0fc5e0b88b050d48f76c8b14b7a7ad4308e3fcb3 100644 --- a/classes/cms.py +++ b/classes/cms.py @@ -350,6 +350,7 @@ class CMS: r = requests.get(self.homeUrl, headers=self.headers, timeout=self.timeout) r.encoding = self.encoding html = r.text + print(html) if self.class_parse and not has_cache: p = self.class_parse.split(';') # print(p) diff --git a/js/LIBVIO.js b/js/LIBVIO.js new file mode 100644 index 0000000000000000000000000000000000000000..10efee01ac5ecaf3236464a95f93c0bc22473314 --- /dev/null +++ b/js/LIBVIO.js @@ -0,0 +1,9 @@ +var rule = Object.assign(muban.首图2,{ +title:'LIBVIO', +host:'https://www.libvio.me', +url:'/type/fyclass-fypage.html', +class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html', +searchUrl:'/search/**----------fypage---.html', +searchable:1, +quickSearch:1, +}); \ No newline at end of file diff --git "a/js/\346\250\241\346\235\277.js" "b/js/\346\250\241\346\235\277.js" index 26be864bf050dc951ab7d203006708551478a6f8..0f52d33eefee505d6473dee009b3d4814b8f0051 100644 --- "a/js/\346\250\241\346\235\277.js" +++ "b/js/\346\250\241\346\235\277.js" @@ -62,7 +62,7 @@ var muban = { searchable:0, quickSearch:0, headers:{ - 'User-Agent':'MOBILE_UA', + 'User-Agent':'UC_UA', // "Cookie": "" }, class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html', @@ -72,7 +72,7 @@ var muban = { 推荐:'ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href', double:true, // 推荐内容是否双层定位 一级:'.stui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href', - 二级:{"title":".stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text","img":".stui-content__thumb .lazyload&&data-original","desc":".stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text","content":".detail&&Text","tabs":".stui-vodlist__head","lists":".stui-content__playlist:eq(#id) li"}, + 二级:{"title":".stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text","img":".stui-content__thumb .lazyload&&data-original","desc":".stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text","content":".detail&&Text","tabs":".stui-vodlist__head h3","lists":".stui-content__playlist:eq(#id) li"}, 搜索:'#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text', } diff --git a/models/rules.db b/models/rules.db index 00295f738a693f4df850591aee0f43477b568894..75e02bf169bdac54207e27029da76e35a01c2610 100644 Binary files a/models/rules.db and b/models/rules.db differ