【发布时间】: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