Merge pull request #591 from lededev/xcity-f1
xcity.py: get detail page by form query
This commit is contained in:
@@ -55,7 +55,7 @@ def get_data_from_json(file_number, conf: config.Config): # 从JSON返回元数
|
||||
|
||||
# default fetch order list, from the beginning to the end
|
||||
sources = conf.sources().split(',')
|
||||
if not len(conf.sources()) > 60:
|
||||
if not len(conf.sources()) > 80:
|
||||
# if the input file name matches certain rules,
|
||||
# move some web service to the beginning of the list
|
||||
lo_file_number = file_number.lower()
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user