diff --git a/docs/changelog.rst b/docs/changelog.rst index cfcc31c..505f715 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,10 @@ Changelog ========= +1.9.2 +----- +* Always set announce key, even for multi-tracker torrents (https://github.com/kz26/dottorrent-gui/issues/15) + 1.9.1 ----- * Fix unreferenced piece size error in CLI diff --git a/docs/cli.rst b/docs/cli.rst index 7908d93..435471f 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -42,7 +42,7 @@ available in your system path. --md5 Add per-file MD5 hashes --verbose, -v verbose mode - dottorrent/1.9.0 (https://github.com/kz26/dottorrent) + dottorrent/1.9.2 (https://github.com/kz26/dottorrent) When creating a torrent, all dotfiles (filenames beginning with a '.') are excluded. On Windows systems running Python 3.5+, all hidden files are excluded as well. diff --git a/dottorrent/__init__.py b/dottorrent/__init__.py index 5a6475d..ce331c5 100644 --- a/dottorrent/__init__.py +++ b/dottorrent/__init__.py @@ -267,10 +267,10 @@ def generate(self, callback=None): # Create the torrent data structure data = OrderedDict() - if len(self.trackers) == 1: + if len(self.trackers) > 0: data['announce'] = self.trackers[0].encode() - elif len(self.trackers) > 1: - data['announce-list'] = [[x.encode()] for x in self.trackers] + if len(self.trackers) > 1: + data['announce-list'] = [[x.encode()] for x in self.trackers] if self.comment: data['comment'] = self.comment.encode() if self.created_by: diff --git a/dottorrent/version.py b/dottorrent/version.py index 35424e8..4175d39 100644 --- a/dottorrent/version.py +++ b/dottorrent/version.py @@ -1 +1 @@ -__version__ = '1.9.1' +__version__ = '1.9.2'