1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 10:59:59 +00:00

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

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