Skip to content

Commit 7cc2388

Browse files
committed
Fix list download
1 parent 273946e commit 7cc2388

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

raincoat/raincoat.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ def prompt_torrent():
111111
shared.DOWNLOAD = len(shared.TORRENTS)
112112
for i in range(shared.DOWNLOAD):
113113
download(shared.TORRENTS[i].id)
114-
exit()
114+
if shared.TERM_FILE != None:
115+
return
116+
else:
117+
exit()
115118
else:
116119
print("Search did not yield any results.")
117120
exit()
@@ -239,6 +242,7 @@ def main():
239242
f = open(shared.TERM_FILE, 'r')
240243
for line in f.readlines():
241244
search(line.strip())
245+
exit()
242246
elif not args.search:
243247
print("Nothing to search for.")
244248
exit()

0 commit comments

Comments
 (0)