- hash fields method and parameter allow user customize hash field list - hash raw parameter allow the output of hash field to be raw bytes - BEncoder now support encode raw bytes
3.1 KiB
3.1 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased
Added
- Add
errorsoption inTorrentFileParserandparse_torrent_fileto let user set the encoding error handler. (Thanks @yasuotakei) - Add
-e/--errorto CLI option to set theerrorsoption ofparse_torrent_file. BDecoderclass anddecodeshortcut function to directly decode bytes.decodeshortcut function to directly encode data to bytes.- Added
hash_fieldsparameter and method to customize hash field list. - Added
hash_rawparameter to let all hash field be parsed as raw bytes.
Changed
- BreakChange
TorrentFileCreatorrename toBEncoderas the origin name don't describe its function. TorrentFileParserdon't need the outmost level of parsed data to be adictnow.BEncoderdon't need the outmost level of encoded data to be adictnow.BEncodernow support encode raw bytes.
0.2.0 - 2018.5.25
Change
- Just bump version to 0.2.0 to follow semver.
0.1.5rc1 - 2018.4.28
Added
TorrentFileCreatorclass andcreate_torrent_fileshortcut function for write back data to a torrent file.
0.1.4 - 2018-04-06
Added
encodingoption can beauto, which will usechardetpackage to decide which encoding to use. Ifchardetis noe installed, will raise a warning and fallback to 'utf-8'. (Thanks to @ltfychrise)- Add changelog.
Change
- Reorganize test codes/files.
Fixed
- Fix integer filed can't be negative bug. (Thanks to @ltfychrise)
- Fix
_seek_backmethod not make_posback bug. (Thanks to @ltfychrise)
0.1.3 - 2017-06-21
Added
- Now
UnicodeDecodeErroris wrapped inInvalidTorrentDataException.
Fixed
- Use
IOErrorinstead ofFileNotFoundErrorin Python 2.
Changed
InvalidTorrentFileExceptionrename toInvalidTorrentDataException.
0.1.2 - 2017-06-21
Changed
- Emm, I don't know, I just changed the version code...
0.1.1 - 2017-06-20
Added
- CLI add coding
--coding/-coption for file string filed encoding.
Changed
ed2kandfilehashfield now use same structure as 'pieces'.
0.1.0 - 2017-05-23
Added
- Parse torrent from file and data into a dict.
- CLI provided.
- Simple tests.
- Available on pip.