fix fanza 剧照
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -110,3 +110,5 @@ venv.bak/
|
|||||||
JAV_output/**/*
|
JAV_output/**/*
|
||||||
failed/*
|
failed/*
|
||||||
.vscode/launch.json
|
.vscode/launch.json
|
||||||
|
|
||||||
|
.idea
|
||||||
@@ -197,7 +197,7 @@ def getSeries(text):
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
def getExtrafanart(htmlcode): # 获取剧照
|
def getExtrafanart(htmlcode): # 获取剧照
|
||||||
html_pather = re.compile(r'<div id=\"sample-image-block\"[\s\S]*?<br></div></div>')
|
html_pather = re.compile(r'<div id=\"sample-image-block\"[\s\S]*?<br></div>\n</div>')
|
||||||
html = html_pather.search(htmlcode)
|
html = html_pather.search(htmlcode)
|
||||||
if html:
|
if html:
|
||||||
html = html.group()
|
html = html.group()
|
||||||
@@ -314,4 +314,4 @@ def main_htmlcode(number):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# print(main("DV-1562"))
|
# print(main("DV-1562"))
|
||||||
# print(main("96fad1217"))
|
# print(main("96fad1217"))
|
||||||
print(main("pred00251"))
|
print(main("h_173ghmt68"))
|
||||||
|
|||||||
Reference in New Issue
Block a user