Remove extra b'e' in torrent generation

Fixes #45
Flexget checks for trailing data after bdecoding, which most decoders don't do - so this went unnoticed.
This commit is contained in:
TheAMM 2017-05-14 20:14:49 +03:00
parent c1df153e98
commit 16c30413dc
1 changed files with 1 additions and 1 deletions

View File

@ -106,6 +106,6 @@ def create_bencoded_torrent(torrent, metadata_base=None):
suffix = bencode.encode(suffixed_dict)
bencoded_info = torrent.info.info_dict
bencoded_torrent = prefix[:-1] + b'4:info' + bencoded_info + b'e' + suffix[1:]
bencoded_torrent = prefix[:-1] + b'4:info' + bencoded_info + suffix[1:]
return bencoded_torrent