mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
Check for private flag on duplicate added torrent
This commit is contained in:
parent
78fcf1781a
commit
7ef9e3dbe0
@ -391,7 +391,7 @@ class TorrentManager(component.Component):
|
|||||||
if add_torrent_id in self.get_torrent_list():
|
if add_torrent_id in self.get_torrent_list():
|
||||||
log.info("Merging trackers for torrent (%s) already in session...", add_torrent_id)
|
log.info("Merging trackers for torrent (%s) already in session...", add_torrent_id)
|
||||||
# Don't merge trackers if either torrent has private flag set
|
# Don't merge trackers if either torrent has private flag set
|
||||||
if self[add_torrent_id].get_status(["private"])["private"]:
|
if torrent_info.priv() or self[add_torrent_id].get_status(["private"])["private"]:
|
||||||
log.info("Merging trackers abandoned: Torrent has private flag set.")
|
log.info("Merging trackers abandoned: Torrent has private flag set.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user