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 Aug 27, 2024
1 parent 8867da9 commit e1352ac
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 e1352ac

Please sign in to comment.