Skip to content

Commit 6fc6baa

Browse files
committed
Fix batch download terminates immediately
1 parent 89e5d16 commit 6fc6baa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/uget-integrator

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ def download_all_links(data):
113113
with open(cookie_filepath, 'w') as cookie_file:
114114
cookie_file.write(cookie)
115115
use_cookie_file = True
116-
except Exception as e:
116+
except Exception:
117117
pass
118118

119119
if use_cookie_file:
120120
command.append("--http-cookie-file=" + cookie_filepath)
121121
# Pass the parameters to uGet
122-
subprocess.call(command)
122+
subprocess.Popen(command, creationflags=creation_flags).wait()
123123

124124
if use_cookie_file:
125125
try:

0 commit comments

Comments
 (0)