Skip to content

Commit

Permalink
Fix list download
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabisonfire committed Jun 25, 2021
1 parent 273946e commit 7cc2388
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion raincoat/raincoat.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ def prompt_torrent():
shared.DOWNLOAD = len(shared.TORRENTS)
for i in range(shared.DOWNLOAD):
download(shared.TORRENTS[i].id)
exit()
if shared.TERM_FILE != None:
return
else:
exit()
else:
print("Search did not yield any results.")
exit()
Expand Down Expand Up @@ -239,6 +242,7 @@ def main():
f = open(shared.TERM_FILE, 'r')
for line in f.readlines():
search(line.strip())
exit()
elif not args.search:
print("Nothing to search for.")
exit()
Expand Down

0 comments on commit 7cc2388

Please sign in to comment.