提交 66200b2d 编写于 作者: H hjdhnx

更新了配置文件,首页不报错了

上级 89ca5e85
var rule = {
title:'玩偶姐姐',
url:'https://hongkongdollvideo.com/fyclass/fypage.html',
host:'https://hongkongdollvideo.com',
homeUrl:'/latest/',
url:'/fyclass/fypage.html[/fypage/]',
searchUrl:'/vodsearch/**----------fypage---.html',
ua:'MOBILE_UA',
class_name:'最新&Hongkong Doll&麻豆传媒&91制片厂&天美传媒&蜜桃传媒&皇家华人&星空传媒&精东影业&乐播传媒&成人头条&乌鸦传媒&兔子先生&杏吧原创&mini传媒&大象传媒&开心鬼传媒&PsychoPorn&糖心Vlog',
......
......@@ -12,6 +12,8 @@ from urllib.parse import urljoin
class CMS:
def __init__(self,rule):
self.host = rule.get('host','').rstrip('/')
self.homeUrl = rule.get('homeUrl','')
self.url = rule.get('url','').rstrip('/')
self.detailUrl = rule.get('detailUrl','').rstrip('/')
self.searchUrl = rule.get('searchUrl','')
......@@ -49,6 +51,7 @@ class CMS:
'type_name': class_names[i],
'type_id': class_urls[i]
})
print(self.url)
result['class'] = classes
if self.filter:
result['filters'] = config['filter']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册