| Crates.io | bitmagnet-comparer |
| lib.rs | bitmagnet-comparer |
| version | 0.1.2 |
| created_at | 2025-05-20 18:56:05.305848+00 |
| updated_at | 2025-05-26 17:17:20.537988+00 |
| description | Utility for extracting hashes from bitmagnet and outputting them to the console |
| homepage | https://github.com/Mistikan/bitmagnet-comparer |
| repository | https://github.com/Mistikan/bitmagnet-comparer |
| max_upload_size | |
| id | 1681976 |
| size | 69,659 |
Utility for extracting hashes from bitmagnet and outputting them to the console.
Date is optional, needed for rescanning.
bitmagnet-comparer --bitmagnet-postgresql-url postgresql://postgres:postgres@localhost:7432/bitmagnet single test.avi 956716040
bitmagnet-comparer --bitmagnet-postgresql-url postgresql://postgres:postgres@localhost:7432/bitmagnet single test.avi 956716040 2025-12-10T00:00:00+03:00
Output:
cb879c48f3dabc747b4fbd6152fb5fa835fb63cf
bitmagnet-comparer \
--bitmagnet-postgresql-url postgresql://postgres:postgres@localhost:7432/bitmagnet \
find-torrent-data-postgresql postgresql://postgres:postgres@localhost:7432/find_torrent_data
RUST_LOG=info bitmagnet-comparer --bitmagnet-postgresql-url postgresql://postgres:postgres@localhost:7432/bitmagnet single test.avi 956716040
Output:
postgres:postgres@localhost:7432/bitmagnet single test.avi 956716040
{"level":"Info","ts":1747593305765,"msg":"Get input files"}
{"level":"Info","ts":1747593305765,"msg":"Search hashs"}
{"level":"Info","ts":1747593305765,"msg":"Print hashs"}
{"level":"Info","ts":1747593305765,"msg":"Get hash for file: File { path: \"test.avi\", size: 956716040 }"}
{"level":"Info","ts":1747593305765,"msg":"Connect db"}
{"level":"Info","ts":1747593305818,"msg":"Extension: Some(\"avi\"), Size: 956716040"}
cb879c48f3dabc747b4fbd6152fb5fa835fb63cf
IMPORTANT: It is recommended to set in Qbittorrent Settings -> Downloads -> Torrent stop condition: "Metadata received", otherwise automatic download will start.
bitmagnet-comparer --bitmagnet-postgresql-url postgresql://postgres:postgres@localhost:7432/bitmagnet single test.avi 956716040 | xargs -t -I {} qbt torrent add url --tag only-metadata --url http://localhost:8080 magnet:?xt=urn:btih:{}