Skip to content

Commit

Permalink
xcity on top when number similar ABP321
Browse files Browse the repository at this point in the history
  • Loading branch information
lededev committed Sep 25, 2021
1 parent 43bb64d commit 4ffc34a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WebCrawler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ def get_data_from_json(file_number, conf: config.Config): # 从JSON返回元数
"rj" in lo_file_number or "vj" in lo_file_number
):
sources.insert(0, sources.pop(sources.index("dlsite")))
elif re.match(r"^[a-z0-9]{3,}$", lo_file_number):
if "javdb" in sources:
sources.insert(0, sources.pop(sources.index("javdb")))
if "xcity" in sources:
sources.insert(0, sources.pop(sources.index("xcity")))

# check sources in func_mapping
todel = []
Expand Down

0 comments on commit 4ffc34a

Please sign in to comment.