modify scripts

This commit is contained in:
oscarz
2025-07-01 10:52:06 +08:00
parent 6fe09c0f69
commit d1ef3957b2

View File

@ -479,11 +479,18 @@ 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)