stream read seemed to break things. Commented it out.
This commit is contained in:
9
main.py
9
main.py
@@ -61,14 +61,11 @@ def download():
|
||||
book['title'] = each.manga.name
|
||||
# book['command'] = 'nothing'
|
||||
|
||||
# os.system(execute)
|
||||
# exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE)
|
||||
# book['output'] = exec_command.communicate()
|
||||
exec_command.communicate()
|
||||
output = exec_command.stdout.readline()
|
||||
# output = exec_command.stdout.readline()
|
||||
book['command'] = exec_command.args
|
||||
if str(output) in 'No new chapters found':
|
||||
notupdated.append(book['title'] + 'not updated')
|
||||
# if str(output) in 'No new chapters found':
|
||||
# notupdated.append(book['title'] + 'not updated')
|
||||
updated.append(book)
|
||||
|
||||
missing = check(passin=1)
|
||||
|
||||
Reference in New Issue
Block a user