diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-10-31 19:49:14 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-10-31 19:49:14 +0000 |
commit | 0cb52cca23cd9437c4d708b7648a935a2560b11e (patch) | |
tree | c1c9e87c027cd261ab80f6730137d4552da1e7fd | |
parent | 09ae4fbb72353e40af4beeaa7610dbdcf0b5179b (diff) | |
download | deluge-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-- | ChangeLog | 1 | ||||
-rw-r--r-- | deluge/metafile.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 & 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" |