madou priority against javdb
This commit is contained in:
@@ -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")))
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import sys
|
||||
sys.path.append('../')
|
||||
from bs4 import BeautifulSoup # need install
|
||||
from lxml import etree # need install
|
||||
from pyquery import PyQuery as pq # need install
|
||||
@@ -5,10 +7,8 @@ from ADC_function import *
|
||||
import json
|
||||
import re
|
||||
from lib2to3.pgen2 import parse
|
||||
import sys
|
||||
|
||||
from urllib.parse import urlparse, unquote
|
||||
sys.path.append('../')
|
||||
|
||||
|
||||
def getActorPhoto(html):
|
||||
@@ -162,3 +162,4 @@ def main(number):
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(main('MD0094'))
|
||||
print(main('MD0222'))
|
||||
|
||||
Reference in New Issue
Block a user