【FreeBSD】transmission-show的半替代品btcheck
FreeBSD上安装
pkg search btcheck
pkg install btcheck
man btcheck
使用:
btcheck -li ABF-073.torrent
Announce URL : https://eu.org/Announce
Dir. Name : ABF-073
Total Length : 8051500745
Piece Length : 8388608
Torrent Hash : 35f77952403f6b89992596af2a1d7caf2155e54f
Base directory : ABF-073
ABF-073.mp4 (8050383357)
ABF-073.mp4.jpg (328602)
ABF-073.mp4.vtx (328602)
ABF-073_COVER.jpg (460184)
btcheck.pl
#!/usr/local/bin/perl -w use strict; my $torrent = shift; foreach ( `btcheck -li 2>/dev/null $torrent` ) { /Torrent Hash : ([a-f0-9]{40})$/i; next unless $1; chomp $1; print "magnet:?xt=urn:btih:$1\n"; last; }
./btcheck.pl ABF-073.torrent