From 4ffc34a5cfa85122386588ed95b11a99434664b6 Mon Sep 17 00:00:00 2001 From: lededev Date: Sat, 25 Sep 2021 20:54:07 +0800 Subject: [PATCH] xcity on top when number similar ABP321 --- WebCrawler/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WebCrawler/__init__.py b/WebCrawler/__init__.py index 13a4145..43680ea 100644 --- a/WebCrawler/__init__.py +++ b/WebCrawler/__init__.py @@ -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 = []