mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-30 21:26:02 +00:00
Do not include an 'announce-list' key in torrents when there is only one tracker
This commit is contained in:
parent
2a4cf7cb56
commit
7983187818
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user