Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit fb169e2

Browse files
authored
Merge pull request #31 from AirQuick/fix_30
Remove the 1st filename parameter (not the 2nd)
2 parents da35106 + 5205414 commit fb169e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

uget-chrome-wrapper/bin/uget-chrome-wrapper

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def read_message():
157157
filename = data['filename']
158158
cookie = data['cookies']
159159
referer = data['referrer']
160-
command = [UGET_COMMAND, "--filename=" + filename]
160+
command = [UGET_COMMAND]
161161
if cookie:
162162
try:
163163
with open(cookie_filepath, 'w') as cookie_file:
@@ -172,6 +172,10 @@ def read_message():
172172
if referer:
173173
command.append("--http-referer=" + referer)
174174

175+
# Add the file name
176+
if filename:
177+
command.append("--filename=" + filename)
178+
175179
# Add the cookie file
176180
if use_cookie_file:
177181
command.append("--http-cookie-file=" + cookie_filepath)

0 commit comments

Comments
 (0)