【问题标题】:Save aria2 generated .torrent file with magnet's "dn" name?用磁铁的“dn”名称保存 aria2 生成的 .torrent 文件?
【发布时间】:2019-12-02 23:55:45
【问题描述】:

Aria2 具有specify a magnet URI and it will save a torrent file 的能力。该文件以十六进制编码信息哈希的名称保存,后缀为.torrent

Magnet URIs 有一个?dn= 选项,这是一个显示名称。保存种子时是否可以使用此名称,以便

aria2c -d . --bt-metadata-only=true --bt-save-metadata=true "magnet:?xt=urn:btih:cf7da7ab4d4e6125567bd979994f13bb1f23dddd&dn=ubuntu-18.04.2-desktop-amd64.iso"

输出ubuntu-18.04.2-desktop-amd64.iso.torrent 而不是cf7da7ab4d4e6125567bd979994f13bb1f23dddd.torrent

【问题讨论】:

    标签: bash torrent magnet-uri aria2


    【解决方案1】:

    我找不到任何直接选项,但有一个解决方法

    aria2c -S, --show-files[=true|false]
    

    打印 .torrent、.meta4 和 .metalink 文件的文件列表并退出。更详细 信息将在 torrent 文件的情况下列出。

    使用这个和一些 greping,cutting 你可以做这样的事情..

    mv hash.torrent  "`aria2c -S hash.torrent | grep Name | cut -c7-`.torrent"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-29
      • 1970-01-01
      • 2020-01-13
      • 1970-01-01
      • 2010-12-25
      • 1970-01-01
      相关资源
      最近更新 更多