diff --git a/deluge/ui/console/cmdline/commands/move.py b/deluge/ui/console/cmdline/commands/move.py index 67ee0af1d..1691f171b 100644 --- a/deluge/ui/console/cmdline/commands/move.py +++ b/deluge/ui/console/cmdline/commands/move.py @@ -41,12 +41,8 @@ class Command(BaseCommand): ) 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) + names = [self.console.get_torrent_name(id_) for id_ in ids] def on_move(res): msg = 'Moved "{}" to {}'.format(', '.join(names), options.path)