From 79831878183f92c365c0156768947be6a4c8a3b5 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 31 Oct 2009 19:49:14 +0000 Subject: [PATCH] Do not include an 'announce-list' key in torrents when there is only one tracker --- deluge/metafile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"