torf
torf copied to clipboard
Python module to create, parse and edit torrent files and magnet links
I recently encountered this [torrent](https://github.com/rndusr/torf/files/14894289/torrent.gz) file in the wild and it has one invalid tracker url out of many. Trying to read it raises a metainfo error ```py Traceback (most...
I find the following… odd (torf 4.2.7): ```python import os import torf with open("test.txt", "w") as file: file.write("test") torrent = torf.Torrent(path="test.txt") torrent.generate() os.unlink("test.txt") print(torrent.infohash) ``` ``` Traceback (most recent call...
Any chance to support bittorrent v2 protocol?
The [BitTorrentSpecification ](https://wiki.theory.org/BitTorrentSpecification?utm_source=chatgpt.com#piece:_.3Clen.3D0009.2BX.3E.3Cid.3D7.3E.3Cindex.3E.3Cbegin.3E.3Cblock.3E) says > The piece length specifies the nominal piece size, and is usually a power of 2. The https://www.bittorrent.org/beps/bep_0052.html says: > The number of bytes that each...