Closed Yuuki2012 closed 8 years ago
Looks like a malformed .torrent
file where a path
entry is encoded as path.utf-8
. Are you able to post the .torrent
file somewhere I could have a look?
I'll look into this as I can. Should probably give a better error message, at the very least.
http://shiro.yuuki-chan.xyz/846889.torrent
Here's the torrent, it's not made by me, but it's made with Vuze, I think this is the problem here.
Oh, I see. Thanks a lot.
from BitTornado.Meta.bencode import BencodedFile
class TestOpen(BencodedFile, dict):
pass
metainfo = TestOpen.read('846889.torrent')
Yeah, it looks like the metainfo has the following keys:
['encoding', 'creation date', 'announce-list', 'announce', 'info',
'created by', 'comment', 'azureus_properties', 'comment.utf-8']
metainfo['info']
has:
['files', 'pieces', 'private', 'name.utf-8', 'piece length', 'name']
metainfo['info']['files'][0]
has:
['path', 'length', 'path.utf-8']
I think the best way to go about this in the short term is to whitelist these '.utf-8' keys, as well as that azureus_properties
. That way modifying the file doesn't necessarily remove them.
During handling of the above exception, another exception occurred:
I'm not sure what causes this... it happens when I try to start the tracker.