gpt4 book ai didi

python - 你如何在 libtorrent 中获得 torrent 的总大小?

转载 作者:太空宇宙 更新时间:2023-11-04 03:56:29 26 4
gpt4 key购买 nike

如何获取 torrent 文件的总大小?

有什么方法可以获取 torrent 中的文件数量和每个文件的大小?

最佳答案

h = ses.add_torrent(params)
s = h.status()
while (not h.is_seed()):
print s.total_wanted # prints total size wanted after meta data is obtained, before that 0 is printed.

关于python - 你如何在 libtorrent 中获得 torrent 的总大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18145608/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com