diff options
Diffstat (limited to 'libmat2/torrent.py')
| -rw-r--r-- | libmat2/torrent.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmat2/torrent.py b/libmat2/torrent.py index 4d6c1e0..c006f9c 100644 --- a/libmat2/torrent.py +++ b/libmat2/torrent.py | |||
| @@ -3,6 +3,7 @@ from typing import Union, Tuple, Dict | |||
| 3 | 3 | ||
| 4 | from . import abstract | 4 | from . import abstract |
| 5 | 5 | ||
| 6 | |||
| 6 | class TorrentParser(abstract.AbstractParser): | 7 | class TorrentParser(abstract.AbstractParser): |
| 7 | mimetypes = {'application/x-bittorrent', } | 8 | mimetypes = {'application/x-bittorrent', } |
| 8 | whitelist = {b'announce', b'announce-list', b'info'} | 9 | whitelist = {b'announce', b'announce-list', b'info'} |
| @@ -32,7 +33,7 @@ class TorrentParser(abstract.AbstractParser): | |||
| 32 | return True | 33 | return True |
| 33 | 34 | ||
| 34 | 35 | ||
| 35 | class _BencodeHandler(object): | 36 | class _BencodeHandler(): |
| 36 | """ | 37 | """ |
| 37 | Since bencode isn't that hard to parse, | 38 | Since bencode isn't that hard to parse, |
| 38 | MAT2 comes with its own parser, based on the spec | 39 | MAT2 comes with its own parser, based on the spec |
