madou priority against javdb

This commit is contained in:
lededev
2022-03-06 01:31:43 +08:00
parent 9e332b0d02
commit 54d8f3af87
2 changed files with 7 additions and 2 deletions

View File

@@ -95,6 +95,10 @@ def get_data_from_json(file_number, oCC):
"rj" in lo_file_number or "vj" in lo_file_number
):
sources.insert(0, sources.pop(sources.index("dlsite")))
elif "madou" in sources and (
re.match(r"^md[0-9]{4}$", lo_file_number)
):
sources.insert(0, sources.pop(sources.index("madou")))
elif re.match(r"^[a-z0-9]{3,}$", lo_file_number):
if "javdb" in sources:
sources.insert(0, sources.pop(sources.index("javdb")))