Fix the path error under Linux. Specify Python3 as the runtime.
This commit is contained in:
parent
642c8103c7
commit
1086447369
1
ADC_function.py
Normal file → Executable file
1
ADC_function.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
41
AV_Data_Capture.py
Normal file → Executable file
41
AV_Data_Capture.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
@ -30,26 +31,26 @@ def UpdateCheck():
|
|||||||
print('[+]Update Check disabled!')
|
print('[+]Update Check disabled!')
|
||||||
def movie_lists():
|
def movie_lists():
|
||||||
if config['directory_capture']['switch'] == '0' or config['directory_capture']['switch'] == '':
|
if config['directory_capture']['switch'] == '0' or config['directory_capture']['switch'] == '':
|
||||||
a2 = glob.glob(r".\*.mp4")
|
a2 = glob.glob(r'./*.mp4') # 使用 '/' 可以同时兼容Linux
|
||||||
b2 = glob.glob(r".\*.avi")
|
b2 = glob.glob(r'./*.avi')
|
||||||
c2 = glob.glob(r".\*.rmvb")
|
c2 = glob.glob(r'./*.rmvb')
|
||||||
d2 = glob.glob(r".\*.wmv")
|
d2 = glob.glob(r'./*.wmv')
|
||||||
e2 = glob.glob(r".\*.mov")
|
e2 = glob.glob(r'./*.mov')
|
||||||
f2 = glob.glob(r".\*.mkv")
|
f2 = glob.glob(r'./*.mkv')
|
||||||
g2 = glob.glob(r".\*.flv")
|
g2 = glob.glob(r'./*.flv')
|
||||||
h2 = glob.glob(r".\*.ts")
|
h2 = glob.glob(r'./*.ts')
|
||||||
total = a2 + b2 + c2 + d2 + e2 + f2 + g2 + h2
|
total = a2 + b2 + c2 + d2 + e2 + f2 + g2 + h2
|
||||||
return total
|
return total
|
||||||
elif config['directory_capture']['switch'] == '1':
|
elif config['directory_capture']['switch'] == '1':
|
||||||
directory = config['directory_capture']['directory']
|
directory = config['directory_capture']['directory']
|
||||||
a2 = glob.glob(r".\\" + directory + "\*.mp4")
|
a2 = glob.glob(r"./" + directory + "/*.mp4")
|
||||||
b2 = glob.glob(r".\\" + directory + "\*.avi")
|
b2 = glob.glob(r"./" + directory + "/*.avi")
|
||||||
c2 = glob.glob(r".\\" + directory + "\*.rmvb")
|
c2 = glob.glob(r"./" + directory + "/*.rmvb")
|
||||||
d2 = glob.glob(r".\\" + directory + "\*.wmv")
|
d2 = glob.glob(r"./" + directory + "/*.wmv")
|
||||||
e2 = glob.glob(r".\\" + directory + "\*.mov")
|
e2 = glob.glob(r"./" + directory + "/*.mov")
|
||||||
f2 = glob.glob(r".\\" + directory + "\*.mkv")
|
f2 = glob.glob(r"./" + directory + "/*.mkv")
|
||||||
g2 = glob.glob(r".\\" + directory + "\*.flv")
|
g2 = glob.glob(r"./" + directory + "/*.flv")
|
||||||
h2 = glob.glob(r".\\" + directory + "\*.ts")
|
h2 = glob.glob(r"./" + directory + "/*.ts")
|
||||||
total = a2 + b2 + c2 + d2 + e2 + f2 + g2 + h2
|
total = a2 + b2 + c2 + d2 + e2 + f2 + g2 + h2
|
||||||
return total
|
return total
|
||||||
def CreatFailedFolder():
|
def CreatFailedFolder():
|
||||||
@ -121,11 +122,11 @@ def getNumber(filepath):
|
|||||||
|
|
||||||
def RunCore():
|
def RunCore():
|
||||||
if os.path.exists('core.py'):
|
if os.path.exists('core.py'):
|
||||||
os.system('python core.py' + ' "' + i + '" --number "'+getNumber(i)+'"') #从py文件启动(用于源码py)
|
os.popen(sys.executable + ' core.py' + ' "' + i + '" --number "'+getNumber(i)+'"') #从py文件启动(用于源码py)
|
||||||
elif os.path.exists('core.exe'):
|
elif os.path.exists('core.exe'):
|
||||||
os.system('core.exe' + ' "' + i + '" --number "'+getNumber(i)+'"') #从exe启动(用于EXE版程序)
|
os.popen('core.exe' + ' "' + i + '" --number "'+getNumber(i)+'"') #从exe启动(用于EXE版程序)
|
||||||
elif os.path.exists('core.py') and os.path.exists('core.exe'):
|
elif os.path.exists('core.py') and os.path.exists('core.exe'):
|
||||||
os.system('python core.py' + ' "' + i + '" --number "' + getNumber(i) + '"') #从py文件启动(用于源码py)
|
os.popen(sys.executable + ' core.py' + ' "' + i + '" --number "' + getNumber(i) + '"') #从py文件启动(用于源码py)
|
||||||
|
|
||||||
if __name__ =='__main__':
|
if __name__ =='__main__':
|
||||||
print('[*]===========AV Data Capture===========')
|
print('[*]===========AV Data Capture===========')
|
||||||
@ -147,4 +148,4 @@ if __name__ =='__main__':
|
|||||||
|
|
||||||
CEF('JAV_output')
|
CEF('JAV_output')
|
||||||
print("[+]All finished!!!")
|
print("[+]All finished!!!")
|
||||||
input("[+][+]Press enter key exit, you can check the error messge before you exit.\n[+][+]按回车键结束,你可以在结束之前查看和错误信息。")
|
input("[+][+]Press enter key exit, you can check the error messge before you exit.\n[+][+]按回车键结束,你可以在结束之前查看和错误信息。")
|
||||||
|
1
core.py
Normal file → Executable file
1
core.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
3
fc2fans_club.py
Normal file → Executable file
3
fc2fans_club.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
import re
|
import re
|
||||||
from lxml import etree#need install
|
from lxml import etree#need install
|
||||||
import json
|
import json
|
||||||
@ -81,4 +82,4 @@ def main(number2):
|
|||||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'),)#.encode('UTF-8')
|
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'),)#.encode('UTF-8')
|
||||||
return js
|
return js
|
||||||
|
|
||||||
#print(main('1051725'))
|
#print(main('1051725'))
|
||||||
|
3
javbus.py
Normal file → Executable file
3
javbus.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
import re
|
import re
|
||||||
import requests #need install
|
import requests #need install
|
||||||
from pyquery import PyQuery as pq#need install
|
from pyquery import PyQuery as pq#need install
|
||||||
@ -173,4 +174,4 @@ def main_uncensored(number):
|
|||||||
js2 = javdb.main(number)
|
js2 = javdb.main(number)
|
||||||
return js2
|
return js2
|
||||||
|
|
||||||
return js
|
return js
|
||||||
|
3
javdb.py
Normal file → Executable file
3
javdb.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
import re
|
import re
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
import json
|
import json
|
||||||
@ -137,4 +138,4 @@ def main(number):
|
|||||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
|
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
|
||||||
return js
|
return js
|
||||||
|
|
||||||
#print(main('061519-861'))
|
#print(main('061519-861'))
|
||||||
|
3
siro.py
Normal file → Executable file
3
siro.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
import re
|
import re
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
import json
|
import json
|
||||||
@ -101,4 +102,4 @@ def main(number2):
|
|||||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'),)#.encode('UTF-8')
|
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'),)#.encode('UTF-8')
|
||||||
return js
|
return js
|
||||||
|
|
||||||
#print(main('300maan-373'))
|
#print(main('300maan-373'))
|
||||||
|
Loading…
Reference in New Issue
Block a user