从命令行获取 transmission 下载目录

从命令行获取 transmission 下载目录

有没有办法使用 transmission-remote 查看 torrent 的当前下载位置?在 Web 界面中,您可以查看和设置单个 torrent 的位置,但除非我遗漏了某些内容,否则此选项在 transmission-remote 中不可用?(-w 仅设置全局位置或在添加 torrent 时设置位置)。

有没有办法从 /var/lib/transmission-deamon 中的 torrent 文件中提取它?

答案1

--session-info您可以使用( )选项获取默认下载目录-si

transmission-remote host:port -si

输出:

VERSION
  Daemon version: 4.0.4 (24077e3511)
  RPC version: 17
  RPC minimum version: 14

CONFIG
  Configuration directory: /data/transmission-home
  Download directory: /data/download
  Listenport: 49115
  Portforwarding enabled: No
  uTP enabled: No
  Distributed hash table enabled: Yes
  Local peer discovery enabled: No
  Peer exchange allowed: Yes
  Encryption: required
  Maximum memory cache size: 4.00 MiB

LIMITS
  Peer limit: 240
  Default seed ratio limit: Unlimited
  Upload speed limit: 12.50 MB/s (Enabled limit: 12.50 MB/s; Disabled turtle limit: 5.00 MB/s)
  Download speed limit: 50.00 MB/s (Enabled limit: 50.00 MB/s; Disabled turtle limit: 5.00 MB/s)

MISC
  Autostart added torrents: Yes
  Delete automatically added torrents: No

--info您可以使用( )选项获取特定种子-i

transmission-remote host:port -t 1 -i

输出:

NAME
  Id: 1
  Name: debian-live-12.2.0-amd64-lxqt.iso
  Hash: a920aca5550cf0cc1c1675a92220b5733128fafc
  Magnet: magnet:?xt=urn:btih:a920aca5550cf0cc1c1675a92220b5733128fafc&dn=debian-live-12.2.0-amd64-lxqt.iso&tr=http%3A%2F%2Fbttracker.debian.org%3A6969%2Fannounce&ws=https%3A%2F%2Fcdimage.debian.org%2Fcdimage%2Frelease%2F12.2.0-live%2Fiso-hybrid%2Fdebian-live-12.2.0-amd64-lxqt.iso&ws=https%3A%2F%2Fcdimage.debian.org%2Fcdimage%2Farchive%2F12.2.0-live%2Fiso-hybrid%2Fdebian-live-12.2.0-amd64-lxqt.iso
  Labels: 

TRANSFER
  State: Idle
  Location: /data/download
  Percent Done: 100%
  ETA: 0 seconds (0 seconds)
  Download Speed: 0 kB/s
  Upload Speed: 0 kB/s
  Have: 3.21 GB (3.21 GB verified)
  Availability: 100%
  Total size: 3.21 GB (3.21 GB wanted)
  Downloaded: 3.21 GB
  Uploaded: 2.18 GB
  Ratio: 0.6
  Corrupt DL: None
  Peers: connected to 0, uploading to 0, downloading from 0
  Web Seeds: downloading from 0 of 2 web seeds

HISTORY
  Date added:       Fri Oct 13 09:04:27 2023
  Date finished:    Fri Oct 13 09:14:08 2023
  Date started:     Sun Nov 26 04:02:27 2023
  Latest activity:  Mon Nov 27 02:25:13 2023
  Downloading Time: 9 minutes (580 seconds)
  Seeding Time:     40 days (3513509 seconds)

ORIGINS
  Date created: Sat Oct  7 14:10:46 2023
  Public torrent: Yes
  Comment: "Debian CD from cdimage.debian.org"
  Creator: mktorrent 1.1
  Piece Count: 12252
  Piece Size: 256.0 KiB

LIMITS & BANDWIDTH
  Download Limit: Unlimited
  Upload Limit: Unlimited
  Ratio Limit: Default
  Honors Session Limits: Yes
  Peer limit: 60
  Bandwidth Priority: Normal

您也正确地-w设置了全局下载目录,或者在添加时为特定的种子设置了它。

无法更改正在进行的 torrent 下载的下载目录。

相关内容