Update append trackers commit to ignore state file adds

This commit is contained in:
Calum Lind 2011-06-28 01:42:26 +01:00
parent 6ad3a770af
commit 2cceb3a349
1 changed files with 23 additions and 22 deletions

View File

@ -410,6 +410,7 @@ class TorrentManager(component.Component):
add_torrent_params["duplicate_is_error"] = True
# If torrent already exists just append any extra trackers.
if state is None:
add_torrent_id = str(add_torrent_params["ti"].info_hash())
if add_torrent_id in self.get_torrent_list():
log.debug("Torrent (%s) exists, checking for trackers to add...", add_torrent_id)