Made a few changes. Short term trying os.system to call manga-py instead of embedding it.
This commit is contained in:
6
main.py
6
main.py
@@ -1,5 +1,9 @@
|
||||
import sqlalchemy as db
|
||||
import json
|
||||
# from manga_py1.parser import Parser
|
||||
# from manga_py1.info import Info
|
||||
# from Downloader import my_awesome_handler
|
||||
import os
|
||||
|
||||
def download():
|
||||
db_URI = 'mysql+pymysql://mdownload:mdownload@192.168.86.198:3306/Downloads'
|
||||
@@ -32,6 +36,8 @@ def download():
|
||||
|
||||
if active[0] != 0:
|
||||
print("""manga-py """ + base[y]+url[y] + """ -n \"""" + name[y] + """\" -d \"""" + PATH + """\" -z -g """)
|
||||
execute = """manga-py """ + base[y]+url[y] + """ -n \"""" + name[y] + """\" -d \"""" + PATH + """\" -z -g """
|
||||
os.system(execute)
|
||||
y = y+1
|
||||
|
||||
def upload_jason():
|
||||
|
||||
Reference in New Issue
Block a user