Skip to content

Commit

Permalink
[Console] Fix move command stalling
Browse files Browse the repository at this point in the history
  • Loading branch information
mhertz committed Apr 2, 2024
1 parent 7f3f7f6 commit bb08949
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deluge/ui/console/cmdline/commands/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ def handle(self, options):
)
return

ids = []
names = []
for t_id in options.torrent_ids:
tid = self.console.match_torrent(t_id)
ids.extend(tid)
names.append(self.console.get_torrent_name(tid))
ids = self.console.match_torrents(options.torrent_ids)
if not ids:
return
for t_id in ids:
names.append(self.console.get_torrent_name(t_id))

def on_move(res):
msg = 'Moved "{}" to {}'.format(', '.join(names), options.path)
Expand Down

0 comments on commit bb08949

Please sign in to comment.