Do not include an 'announce-list' key in torrents when there is only one tracker

This commit is contained in:
Andrew Resch 2009-10-31 19:49:14 +00:00
parent 2a4cf7cb56
commit 7983187818
1 changed files with 1 additions and 1 deletions

View File

@ -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"