mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue