Skip to content

Commit

Permalink
修复javdb serial刮削失败
Browse files Browse the repository at this point in the history
  • Loading branch information
todoXu authored and Yuukiy committed Dec 20, 2023
1 parent fd8ebc1 commit bc2cc5d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion unittest/data/AGEMIX-175 (javdb).json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"magnet:?xt=urn:btih:35d0e7eb4bb945698fea8d080503658af7c1bee7&dn=#_agemix-175",
"magnet:?xt=urn:btih:f5cb1fb07f90e8213774c8a31b475dcf9db43adb&dn=AGEMIX-175 添い寝手コキ 2 綾瀬れん 板野有紀 夏目優希 坂下えみり 奏音"
],
"serial": null,
"serial": "添い寝手コキ",
"actress": [
"板野有紀",
"坂下えみり",
Expand Down
2 changes: 1 addition & 1 deletion unittest/data/IPX-177 (javdb).json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"magnet:?xt=urn:btih:fef6fa8fdb529ca87b63ef3d257288670c9859bc&dn=IPX-177-fuckbe.com.mp4",
"magnet:?xt=urn:btih:7f490c6468ee5f611570ba8083912f5d0495d797&dn=hjd-2048.com-0713-ipx-177-h264"
],
"serial": null,
"serial": "僕だけの「絶対領域」を誕生させ僕好みに痴女らせた。",
"actress": [
"相沢みなみ"
],
Expand Down
17 changes: 10 additions & 7 deletions unittest/data/STARS-256 (javdb).json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,25 @@
"cover": "https://c0.jdbstatic.com/covers/ed/eDZBr.jpg",
"big_cover": null,
"genre": [
"美少女電影",
"平胸",
"淫亂真實",
"單體作品",
"淫亂真實"
"平胸",
"美少女電影",
"無碼破解"
],
"genre_id": null,
"genre_norm": [
"美少女电影",
"平胸",
"淫乱?真实",
"單體作品",
"淫乱?真实"
"平胸",
"美少女电影",
"無碼破解"
],
"score": "9.14",
"title": "如同剛出生小鹿般雙腳顫抖 1日中狂抽猛插性交 永野一夏",
"ori_title": "生まれたての子鹿の如く崩れ落とす 1日中超ピストン性交 永野いち夏",
"magnet": [
"magnet:?xt=urn:btih:4641aa8de0a29d80b98111116806d82fac687562&dn=STARS-256-U.torrent.无码破解",
"magnet:?xt=urn:btih:8de6747ebd3c772c2e582c2bb97440f74a1e37c0&dn=stars-256.torrent",
"magnet:?xt=urn:btih:b826f69e327b65f8e036b9b2e34566a77ead9178&dn=STARS-256.mp4",
"magnet:?xt=urn:btih:f33f2f712049dffc9564d7ebc85b426d874c3c5c&dn=STARS-256",
Expand All @@ -33,7 +36,7 @@
"magnet:?xt=urn:btih:ba820a03dddebdf0ffbc7e55d22f6247756b44f4&dn=STARS-256 1 .mp4",
"magnet:?xt=urn:btih:a1d73b741204ad7b84db7ee60a7a2219494c6f05&dn=STARS-256.mp4"
],
"serial": null,
"serial": "生まれたての子鹿の如く崩れ落とす1日中超ピストン性交",
"actress": [
"永野いち夏"
],
Expand Down
4 changes: 2 additions & 2 deletions web/javdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def parse_data(movie: MovieInfo):
movie.publisher = publisher_tag[0].getnext().text_content().strip()
serial_tag = info.xpath("div/strong[text()='系列:']")
if serial_tag:
movie.serial = serial_tag[0].getnext().text
movie.serial = serial_tag[0].getnext().text_content().strip()
score_tag = info.xpath("//span[@class='score-stars']")
if score_tag:
score_str = score_tag[0].tail
Expand Down Expand Up @@ -219,7 +219,7 @@ def parse_clean_data(movie: MovieInfo):
pretty_errors.configure(display_link=True)
logger.root.handlers[1].level = logging.DEBUG

movie = MovieInfo('FC2-238629')
movie = MovieInfo('JUQ-471')
try:
parse_clean_data(movie)
print(movie)
Expand Down

0 comments on commit bc2cc5d

Please sign in to comment.