Update javdb.py

This commit is contained in:
Feng4
2021-01-05 10:47:09 +08:00
committed by GitHub
parent 4a99b57244
commit 063de7c030

View File

@@ -23,7 +23,7 @@ def getaphoto(url):
html_page = get_html(url)
img_prether = re.compile(r'<span class\=\"avatar\" style\=\"background\-image\: url\((.*?)\)')
img_url = img_prether.findall(html_page)
if img_prether:
if img_url:
return img_url[0]
else:
return ''