mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 11:40:01 +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:
parent
c1df153e98
commit
16c30413dc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue