我尝试解码哈希以从刮文件中构建磁铁 uri(从 Coppersurfer.tk 网站下载)
拆分大文件后
我尝试解码哈希文件
hash = hashlib.sha1(f).hexdigest() # hash info
并得到列表,如
6768033e216468247bd031a0a2d9876d79818f8f : {'downloaded': 2374, 'complete': 0, 'incomplete': 75}
e5eaaedf19d4602337c71b041a669b9d70bda764 : {'downloaded': 0, 'complete': 0, 'incomplete': 1}
a2e43672a55dcda5d6b1cbdf356da4f6a3e6178d : {'downloaded': 0, 'complete': 0, 'incomplete': 1}
ea01e99635aa17b7d9803c3004210202b1e9e612 : {'downloaded': 1, 'complete': 0, 'incomplete': 2}
b9c569eb1820a1a67633757fc96801ed0c8f3281 : {'downloaded': 1085, 'complete': 1, 'incomplete': 0}
92c9de8c9a40405f56aa5c4d55c22720a208207f : {'downloaded': 0, 'complete': 0, 'incomplete': 1}
a398de47b654426f4ef39054c8bbfe9f0348cd74 : {'downloaded': 304, 'complete': 1, 'incomplete': 0}
11a9f43eead2164042c87bf75fa72d885d4afe86 : {'downloaded': 0, 'complete': 0, 'incomplete': 1}
254b675173ccb75085a0e25a1da6c1ec2c5846a0 : {'downloaded': 0, 'complete': 0, 'incomplete': 1}
但是当我将它结合起来创建磁铁 uri 时,例如
magnet:?xt=urn:btih:6768033e216468247bd031a0a2d9876d79818f8f
并尝试在 torrent 客户端下载它,它似乎不起作用(我尝试了多个其他具有相同结果的哈希)
你知道我需要做什么才能正确解码散列吗?
谢谢您的帮助