subprocess args should be working correctly now.
This commit is contained in:
6
main.py
6
main.py
@@ -51,17 +51,19 @@ def download():
|
||||
book={}
|
||||
if 'http' in each.manga.name or 'https' in each.manga.url:
|
||||
# execute = """manga-py """ + each.manga.url + """ -n \"""" + each.manga.name + """\" -d \"""" + PATH + """\" -z -N --print-json"""
|
||||
exec_command = subprocess.Popen(['manga-py', each.manga.url, '-n', each.manga.name, '-d ' + PATH, '-z', '-N', '--print-json'], stdout=subprocess.PIPE)
|
||||
exec_command = subprocess.Popen(['manga-py', each.manga.url, '-n', each.manga.name, '-d', PATH, '-z', '-N', '--print-json'], stdout=subprocess.PIPE)
|
||||
else:
|
||||
print('nothing')
|
||||
# execute = """manga-py """ + each.url_metadata.base_url+each.manga.url + """ -n \"""" + each.manga.name.strip('?') + """\" -d \"""" + PATH + """\" -z -N --print-json"""
|
||||
exec_command = subprocess.Popen(['manga-py', each.url_metadata.base_url, each.manga.url, '-n', each.manga.name.strip('?'), '-d ' + PATH, '-z', '-N', '--print-json'], stdout=subprocess.PIPE)
|
||||
exec_command = subprocess.Popen(['manga-py', each.url_metadata.base_url+each.manga.url, '-n', each.manga.name.strip('?'), '-d', PATH, '-z', '-N', '--print-json'], stdout=subprocess.PIPE)
|
||||
book['title'] = each.manga.name
|
||||
# book['command'] = 'nothing'
|
||||
|
||||
# os.system(execute)
|
||||
# exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE)
|
||||
book['output'] = exec_command.communicate()
|
||||
print(exec_command.args)
|
||||
|
||||
updated.append(book)
|
||||
|
||||
missing = check(passin=1)
|
||||
|
||||
Reference in New Issue
Block a user