Author: andar
Revision: 5902
Log:
Do not include an 'announce-list' key in torrents when there is only
one tracker
Diff:
Modified: branches/1.2_RC/ChangeLog
===================================================================
--- branches/1.2_RC/ChangeLog 2009-10-31 18:52:52 UTC (rev 5901)
+++ branches/1.2_RC/ChangeLog 2009-10-31 19:49:14 UTC (rev 5902)
@@ -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
Modified: branches/1.2_RC/deluge/metafile.py
===================================================================
--- branches/1.2_RC/deluge/metafile.py 2009-10-31 18:52:52 UTC (rev 5901)
+++ branches/1.2_RC/deluge/metafile.py 2009-10-31 19:49:14 UTC (rev 5902)
@@ -100,7 +100,7 @@
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"
Modified: trunk/deluge/metafile.py
===================================================================
--- trunk/deluge/metafile.py 2009-10-31 18:52:52 UTC (rev 5901)
+++ trunk/deluge/metafile.py 2009-10-31 19:49:14 UTC (rev 5902)
@@ -100,7 +100,7 @@
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"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---