Update fanza.py
This commit is contained in:
@@ -140,8 +140,7 @@ class Fanza(Parser):
|
|||||||
|
|
||||||
def getExtrafanart(self, htmltree):
|
def getExtrafanart(self, htmltree):
|
||||||
html_parent = re.compile(r'<div id=\"sample-image-block\"[\s\S]*?<br></div>\s*?</div>')
|
html_parent = re.compile(r'<div id=\"sample-image-block\"[\s\S]*?<br></div>\s*?</div>')
|
||||||
html = html_parent.search(
|
html = html_parent.search(self.htmlcode)
|
||||||
self.htmlcode)
|
|
||||||
if html:
|
if html:
|
||||||
html = html.group()
|
html = html.group()
|
||||||
extrafanart_parent = re.compile(r'<img.*?src=\"(.*?)\"')
|
extrafanart_parent = re.compile(r'<img.*?src=\"(.*?)\"')
|
||||||
@@ -157,8 +156,7 @@ class Fanza(Parser):
|
|||||||
|
|
||||||
def getTrailer(self, htmltree):
|
def getTrailer(self, htmltree):
|
||||||
html_parent = re.compile(r'<script type=\"application/ld\+json\">[\s\S].*}\s*?</script>')
|
html_parent = re.compile(r'<script type=\"application/ld\+json\">[\s\S].*}\s*?</script>')
|
||||||
html = html_parent.search(
|
html = html_parent.search(self.htmlcode)
|
||||||
self.htmlcode)
|
|
||||||
if html:
|
if html:
|
||||||
html = html.group()
|
html = html.group()
|
||||||
trailer_parent = re.compile(r'\"contentUrl\":\"(.*?)\"')
|
trailer_parent = re.compile(r'\"contentUrl\":\"(.*?)\"')
|
||||||
|
|||||||
Reference in New Issue
Block a user