ฉันสนใจที่จะเรนเดอร์ไฟล์ torrent ลงในแบบฟอร์มที่อ่านได้ (เพื่อดูว่าไฟล์อ้างอิงอะไรข้อมูลตัวติดตามนั้นมีอะไรบ้าง) เครื่องมืออะไรที่ฉันสามารถใช้เพื่อทำสิ่งนี้?
ฉันสนใจที่จะเรนเดอร์ไฟล์ torrent ลงในแบบฟอร์มที่อ่านได้ (เพื่อดูว่าไฟล์อ้างอิงอะไรข้อมูลตัวติดตามนั้นมีอะไรบ้าง) เครื่องมืออะไรที่ฉันสามารถใช้เพื่อทำสิ่งนี้?
คำตอบ:
btshowmetainfoก่อนหน้านี้รวมอยู่ในการแจกจ่าย BitTorrent แต่ตอนนี้ส่วนใหญ่ติดตั้งด้วย BitTornado (ทางแยกของรหัสฐาน BitTorrent 3.x) ทำเช่นนั้น
$ btshowmetainfo amd64cd-5.1.2.iso.torrent 
btshowmetainfo 20030621 - decode BitTorrent metainfo files
metainfo file.: amd64cd-5.1.2.iso.torrent
info hash.....: e30c05f2330ba4869eefb90bf5978a505303b235
file name.....: amd64cd-5.1.2.iso
file size.....: 253325312 (966 * 262144 + 94208)
announce url..: http://tracker.netbsd.org:6969/announce
คุณสามารถใช้transmission-showรวมอยู่ในลูกค้า Gnome เกียร์ BitTorrent
$ transmission-show amd64cd-5.1.2.iso.torrent
Name: amd64cd-5.1.2.iso
File: amd64cd-5.1.2.iso.torrent
GENERAL
  Name: amd64cd-5.1.2.iso
  Hash: e30c05f2330ba4869eefb90bf5978a505303b235
  Created by: 
  Created on: Sun Feb  5 01:31:29 2012
  Piece Count: 967
  Piece Size: 256.0 KiB
  Total Size: 253.3 MB
  Privacy: Public torrent
TRACKERS
  Tier #1
  http://tracker.netbsd.org:6969/announce
FILES
  amd64cd-5.1.2.iso (253.3 MB)
หากคุณกำลังใช้Transmissionเวอร์ชั่นที่เก่ากว่าคุณสามารถใช้transmissioncli --infoคำสั่งที่เก่ากว่าได้:
$ transmissioncli --info amd64cd-5.1.2.iso.torrent
Transmission 2.03 (11030) - http://www.transmissionbt.com/
hash:   e30c05f2330ba4869eefb90bf5978a505303b235
name:   amd64cd-5.1.2.iso
tracker tier #1:
        announce:       http://tracker.netbsd.org:6969/announce
size:   253325312 (966 * 262144 + 94208)
file(s):
        amd64cd-5.1.2.iso (253325312)
transmission-showเอาท์พุทให้มีขนาดไฟล์ที่แน่นอนหรือไม่? มีประโยชน์เพื่อดูว่า 2 torrents ของสิ่งเดียวกันอาจไม่ใช่ไฟล์เดียวกันแน่นอนหลังจากทั้งหมด
                    คุณสามารถใช้aria2 จากหน้า man aria2c (1) :
-S, --show-files[=true|false]พิมพ์รายการไฟล์ของ ".torrent", ".meta4" และ ".metalink" ไฟล์และออก ในกรณีของไฟล์ ".torrent" จะมีการพิมพ์ข้อมูลเพิ่มเติม (infohash, length length, ฯลฯ ) ด้วย
$ aria2c -S ubuntu-14.04.2-desktop-i386.iso.torrent >>> การพิมพ์เนื้อหาของไฟล์ 'ubuntu-14.04.2-desktop-i386.iso.torrent' ... *** ข้อมูลไฟล์ BitTorrent *** ความคิดเห็น: Ubuntu CD release.ubuntu.com วันที่สร้าง: พฤหัสบดี, 19 ก.พ. 2015 22:17:32 GMT โหมด: เดียว ประกาศ: http://torrent.ubuntu.com:6969/announce http://ipv6.torrent.ubuntu.com:6969/announce ข้อมูลแฮช: 33678ec8b0dfb8a9061348c8af7194268c0b8310 ความยาวชิ้น: 512KiB จำนวนชิ้น: 2006 ความยาวทั้งหมด: 0.9GiB (1,051,721,728) ชื่อ: ubuntu-14.04.2-desktop-i386.iso Magnet URI: magnet:? xt = urn: btih: 33678EC8B0DFB8A9061348C8AF7194268FF7194268CFBFF10192FPF2V2F3U2U&answer=106.22% & untu torrent.ubuntu.com% 3A6969% 2Fannounce ไฟล์: IDX | เส้นทาง / ความยาว === + ============================================== ============================= 1 | ./ubuntu-14.04.2-desktop-i386.iso | 0.9GiB (1,051,721,728) --- + ---------------------------------------------- -----------------------------
aria2c -S *.torrentทำงาน
                    lstorรวมถึงความสามารถในการคำนวณแฮชซึ่งมีประโยชน์มากในเชลล์สคริปต์:
$ lstor Chakra\ 2012.02\ Archimedes\ x86.torrent -qo __hash__
B3472076574BC666396766AB3B28C0054D740B46
$ lstor Chakra\ 2012.02\ Archimedes\ x86.torrent -q
NAME Chakra 2012.02 Archimedes x86.torrent
SIZE 1.4 GiB (1461 * 1.0 MiB + 0 bytes)
HASH B3472076574BC666396766AB3B28C0054D740B46
URL  http://linuxtracker.org:2710/********************************/announce
PRV  YES (DHT/PEX disabled)
TIME 2012-02-13 17:10:28
BY   qBittorrent v2.9.3
FILE LISTING
chakra-2012.02-Archimedes-i686.iso                                      1.4 GiB
$ lstor Chakra\ 2012.02\ Archimedes\ x86.torrent -q --raw
{'announce': 'http://linuxtracker.org:2710/********************************/announce',
 'created by': 'qBittorrent v2.9.3',
 'creation date': 1329149428,
 'info': {'length': 1531969536,
          'name': 'chakra-2012.02-Archimedes-i686.iso',
          'piece length': 1048576,
          'pieces': '<1461 piece hashes>',
          'private': 1},
 'url-list': ''}
คุณสามารถใช้Torrent File Editor 
(ที่มา: fsdn.com )

นอกจากนี้ยังมีไฟล์ .torrent สามารถแปลงเป็นรูปแบบ .json --to-jsonมีบรรทัดคำสั่ง
https://github.com/effigies/BitTornadoและรันpython3 btshowmetainfo.pyเพื่อรันสคริปต์เนื่องจาก BitTornado ดูเหมือนจะถูกทอดทิ้งมานานแล้ว