Skip to content

Commit

Permalink
Version 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kz26 committed Jul 11, 2017
1 parent d6ed48b commit aac4661
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions dottorrent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion dottorrent/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.9.1'
__version__ = '1.9.2'

0 comments on commit aac4661

Please sign in to comment.