url列表为空
本文关键字:列表 url | 更新日期: 2023-09-27 18:05:07
我想从url列表中获取值,从没有跟踪器的种子。
我写了这个
TorrentFile torrent = Bencode.DecodeTorrentFile("tr.torrent");
BList urllist = (Blist)torrent["url-list"];
,但这不起作用,因为urllist是空的。如何获取url-list
您是否使用调试器来调查在您执行以下操作之后torrent变量中的内容?如果你在第二行设置一个断点,那里可能有大量的数据。调试器是你的朋友。
TorrentFile torrent = Bencode.DecodeTorrentFile("tr.torrent");
还有,你是指追踪器吗?
看这里:https://github.com/Krusen/BencodeNET
你可能只想要
里面的内容BList announceList = torrent["announce-list"];