mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-02 22:53:40 +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(
|
torrent_info = self.get_torrent_info_from_file(
|
||||||
os.path.join(self.state_dir, t_state.torrent_id + '.torrent'),
|
os.path.join(self.state_dir, t_state.torrent_id + '.torrent'),
|
||||||
)
|
)
|
||||||
if torrent_info:
|
|
||||||
magnet = None
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
d = self.add_async(
|
d = self.add_async(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user