Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javdb采集到的genre中把无码相关的移除 #438

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions javsp/web/javdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,12 @@ def parse_data(movie: MovieInfo):
genre, genre_id = [], []
for tag in genre_tags:
pre_id = tag.get('href').split('/')[-1]
genre.append(tag.text)
genre_id.append(pre_id)
# 判定影片有码/无码
# pre_id的id如果是tags?c7=348(無碼破解)、tags?c7=345(無碼流出)
# 则不把此tag添加到genre中,因为是否破解是根据文件名判断的
if pre_id not in ('tags?c7=348', 'tags?c7=345'):
genre.append(tag.text)
genre_id.append(pre_id)
# 判定影片是否无码
subsite = pre_id.split('?')[0]
movie.uncensored = {'uncensored': True, 'tags':False}.get(subsite)
# JavDB目前同时提供男女优信息,根据用来标识性别的符号筛选出女优
Expand Down
Loading