mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-23 17:59:17 +00:00
[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.
This commit is contained in:
parent
f93e5e60b5
commit
34b0fdff1d
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user