modify scripts
This commit is contained in:
@ -479,10 +479,17 @@ def parse_page_movie(soup, href, title):
|
||||
performer["name"] = link.text.strip()
|
||||
performer["href"] = host_url + link["href"]
|
||||
|
||||
performer["tags"] = [
|
||||
tag.strip() for br in cast.find_all("br")
|
||||
if (tag := br.next_sibling) and isinstance(tag, str) and tag.strip()
|
||||
]
|
||||
#performer["tags"] = [
|
||||
# tag.strip() for br in cast.find_all("br")
|
||||
# if (tag := br.next_sibling) and isinstance(tag, str) and tag.strip()
|
||||
#]
|
||||
|
||||
tags = []
|
||||
for br in cast.find_all("br"):
|
||||
tag = br.next_sibling
|
||||
if isinstance(tag, str) and tag.strip():
|
||||
tags.append(tag.strip())
|
||||
performer["tags"] = tags
|
||||
|
||||
#performer["tags"] = [br.next_sibling.strip() for br in cast.find_all("br") if br.next_sibling and (br.next_sibling).strip()]
|
||||
performers.append(performer)
|
||||
|
||||
Reference in New Issue
Block a user