Skip to content

Commit

Permalink
解决getchu单个actress被逗号分割的问题
Browse files Browse the repository at this point in the history
比如:KEITO变成5个actress: K,E,I,T,O
  • Loading branch information
hsiao authored and Yuukiy committed Dec 12, 2023
1 parent 6d37c2d commit e349650
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion unittest/data/GETCHU-4053720 (dl_getchu).json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"ori_title": null,
"magnet": null,
"serial": null,
"actress": "丹雫ひよ",
"actress": [
"丹雫ひよ"
],
"actress_pics": null,
"director": null,
"duration": "67",
Expand Down
4 changes: 3 additions & 1 deletion web/dl_getchu.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ def parse_data(movie: MovieInfo):
if len(value) > 0:
value = value[0].strip()
data[key] = value

for key, value in data.items():
if key == 'サークル':
producer = value[0]
elif key == '作者':
actress = value
# 暂时没有在getchu找到多个actress的片子
actress = [value]
elif key == '画像数&ページ数':
duration = value.replace('分', '')
elif key == '配信開始日':
Expand Down

0 comments on commit e349650

Please sign in to comment.