From 34b0fdff1dbf6fb201bea0d5140b63244d217074 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 28 Sep 2018 14:05:54 +0100 Subject: [PATCH] [Core] Retain magnet details when loading state It is useful to keep the magnet uri even with the torrent_info. When adding the torrent magnet details are only used if torrent_info is not available. --- deluge/core/torrentmanager.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 961ad0f19..8e221fe32 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -762,8 +762,6 @@ class TorrentManager(component.Component): torrent_info = self.get_torrent_info_from_file( os.path.join(self.state_dir, t_state.torrent_id + '.torrent'), ) - if torrent_info: - magnet = None try: d = self.add_async(