【问题标题】:python-libtorrent torrent_info methodpython-libtorrent torrent_info 方法
【发布时间】:2021-07-18 10:49:51
【问题描述】:

我一直在使用 python-libtorrent 检查哪些片段属于包含多个文件的 torrent 中的文件。

我正在使用下面的代码来迭代 torrent 文件

info = libtorrent.torrent_info('~/.torrent')
for f in info.files():
    print f

但这会返回<libtorrent.file_entry object at 0x7f0eda4fdcf0>,我不知道如何从中提取信息。

我不知道torrent_info 属性会返回各种文件的片段值信息。感谢您的帮助。

【问题讨论】:

    标签: python python-2.x torrent libtorrent


    【解决方案1】:

    API 记录在 herehere。显然,python API 并不总是与 C++ 完全一样。但通常该接口采用文件索引并返回该文件的某些属性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多