summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-10-31 19:49:14 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-10-31 19:49:14 +0000
commit0cb52cca23cd9437c4d708b7648a935a2560b11e (patch)
treec1c9e87c027cd261ab80f6730137d4552da1e7fd
parent09ae4fbb72353e40af4beeaa7610dbdcf0b5179b (diff)
downloaddeluge-0cb52cca23cd9437c4d708b7648a935a2560b11e.tar.gz
deluge-0cb52cca23cd9437c4d708b7648a935a2560b11e.tar.bz2
deluge-0cb52cca23cd9437c4d708b7648a935a2560b11e.zip
Do not include an 'announce-list' key in torrents when there is only one tracker
-rw-r--r--ChangeLog1
-rw-r--r--deluge/metafile.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a939ceb53..1097ac13c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* Fix #1047 move completed does not work if saving to non default path
* Fix renamed files not being utf-8 encoded
* Fix torrent name being blank when renaming root folder to /
+ * Do not include an 'announce-list' key in torrents when there is only one tracker
==== GtkUI ====
* Replace & with &amp; in the details tab to ensure there are no markup errors
diff --git a/deluge/metafile.py b/deluge/metafile.py
index bd4ce1a71..5b0a718a1 100644
--- a/deluge/metafile.py
+++ b/deluge/metafile.py
@@ -100,7 +100,7 @@ def make_meta_file(path, url, piece_length, progress=dummy,
if created_by:
data['created by'] = created_by.encode("utf8")
- if trackers:
+ if trackers and (len(trackers[0]) > 1 or len(trackers) > 1):
data['announce-list'] = trackers
data["encoding"] = "UTF-8"