Update 2.9
This commit is contained in:
@@ -24,34 +24,37 @@ if os.path.exists(config_file):
|
|||||||
else:
|
else:
|
||||||
print('[+]config.ini: not found, creating...',end='')
|
print('[+]config.ini: not found, creating...',end='')
|
||||||
with open("config.ini", "wt", encoding='UTF-8') as code:
|
with open("config.ini", "wt", encoding='UTF-8') as code:
|
||||||
print("[common]", file=code)
|
file_text = """[common]
|
||||||
print("main_mode = 1", file=code)
|
main_mode=1
|
||||||
print("failed_output_folder = failed", file=code)
|
failed_output_folder=failed
|
||||||
print("success_output_folder = JAV_output", file=code)
|
success_output_folder=JAV_output
|
||||||
print("", file=code)
|
soft_link=0
|
||||||
print("[proxy]",file=code)
|
|
||||||
print("proxy=127.0.0.1:1081",file=code)
|
[proxy]
|
||||||
print("timeout=10", file=code)
|
proxy=192.168.2.2:1080
|
||||||
print("retry=3", file=code)
|
timeout=10
|
||||||
print("", file=code)
|
retry=3
|
||||||
print("[Name_Rule]", file=code)
|
|
||||||
print("location_rule=actor+'/'+number",file=code)
|
[Name_Rule]
|
||||||
print("naming_rule=number+'-'+title",file=code)
|
location_rule=actor+'/'+number
|
||||||
print("", file=code)
|
naming_rule=number+'-'+title
|
||||||
print("[update]",file=code)
|
|
||||||
print("update_check=1",file=code)
|
[update]
|
||||||
print("", file=code)
|
update_check=1
|
||||||
print("[media]", file=code)
|
|
||||||
print("media_warehouse=emby", file=code)
|
[media]
|
||||||
print("#emby plex kodi", file=code)
|
media_warehouse=emby
|
||||||
print("", file=code)
|
#emby or plex or kodi ,emby=jellyfin
|
||||||
print("[escape]", file=code)
|
|
||||||
print("literals=\\", file=code)
|
[escape]
|
||||||
print("", file=code)
|
literals=\()/
|
||||||
print("[movie_location]", file=code)
|
folders=failed,JAV_output
|
||||||
print("path=", file=code)
|
|
||||||
print("", file=code)
|
[debug_mode]
|
||||||
print('.',end='')
|
switch=0
|
||||||
|
|
||||||
|
"""
|
||||||
|
print(file_text, file=code)
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
print('.')
|
print('.')
|
||||||
print('[+]config.ini: created!')
|
print('[+]config.ini: created!')
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ def main(number2):
|
|||||||
soup = BeautifulSoup(htmlcode, 'lxml')
|
soup = BeautifulSoup(htmlcode, 'lxml')
|
||||||
a = str(soup.find(attrs={'class': 'detail_data'})).replace('\n ','').replace(' ','').replace('\n ','').replace('\n ','')
|
a = str(soup.find(attrs={'class': 'detail_data'})).replace('\n ','').replace(' ','').replace('\n ','').replace('\n ','')
|
||||||
b = str(soup.find(attrs={'id': 'introduction'})).replace('\n ','').replace(' ','').replace('\n ','').replace('\n ','')
|
b = str(soup.find(attrs={'id': 'introduction'})).replace('\n ','').replace(' ','').replace('\n ','').replace('\n ','')
|
||||||
print(b)
|
#print(b)
|
||||||
dic = {
|
dic = {
|
||||||
'title': getTitle(htmlcode).replace("\\n",'').replace(' ',''),
|
'title': getTitle(htmlcode).replace("\\n",'').replace(' ',''),
|
||||||
'studio': getStudio(a),
|
'studio': getStudio(a),
|
||||||
@@ -108,4 +108,4 @@ def main(number2):
|
|||||||
return js
|
return js
|
||||||
#print(htmlcode)
|
#print(htmlcode)
|
||||||
|
|
||||||
print(main('SIRO-3607'))
|
#print(main('SIRO-3607'))
|
||||||
|
|||||||
Reference in New Issue
Block a user