-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
torrent_parser does not return "Info Hash v1" value #13
Comments
Please provide a torrent file that make you have this issue, for testing purposes. And the mean of "info Hash v1" is not clear, some screenshot or log of |
This is the output of transmission-show, The "Hash" value is also referred to as "Info Hash v1" on qbittorrent. It is the "Hash" value that I am trying to get from pytp.
This is a snippet of the pytp output as the original is ~400KB.
The link to the torrent file is: https://torrent.ubuntu.com/xubuntu/releases/jammy/release/desktop/xubuntu-22.04-desktop-amd64.iso.torrent Thank you for your assistance. |
I did some digging in tramsmission source code, and found info hash is actually a SHA1 checksum of torrent file's info object binary bytes. This value is not stored in files itself, but be caluclated during parse process, so current this project do not show it. The only way I can see is after parse the file, we encode the info object into binary bytes again and calulate the hash, It (in theory) will be the same value as |
Just write a test using the file you provide, it's the same in this case. PS: |
Thank you. I'll use transmission-show for now. |
That's OK, this project is basicly a torrent format encoder/decoder, use But I think we can build our own |
Is this a oversight? I need to get the hash of the torrent so that I can detect duplicate torrents. 'transmission-show' displays the hash value of a torrent but not torrent_parser. Thanks.
The text was updated successfully, but these errors were encountered: