2016-09-01 10 views
-2

ウェブシードだけでトラッカーレスのトレントからURLリストから値を取得したい。BEncode.net urllist is null

私はこの

 TorrentFile torrent = Bencode.DecodeTorrentFile("tr.torrent"); 
    BList urllist = (Blist)torrent["url-list"]; 

をwritedが、urllistがnullであるため、これは動作しません。 url-listを取得するには?

+0

可能な二重に何もできますhttp://stackoverflow.com/questions/32067409/decode-bencode- torrent-files) – MethodMan

+1

トレントファイルを投稿すると、助けになるかもしれません。 – KSib

答えて

0

次の操作を行った後で、デバッガを使用してトレント変数の内容を調査しましたか? 2行目にブレークポイントを設定すると、おそらくそこにデータがあります。デバッガはあなたの友人です。

TorrentFile torrent = Bencode.DecodeTorrentFile("tr.torrent"); 

また、トラッカーを意味しますか?
ここを見て:https://github.com/Krusen/BencodeNET

あなただけ([デコード(BEncode)のtorrentファイル]の

BList announceList = torrent["announce-list"]; 
+0

downvotesは説明がありません。 – KSib

+0

私はurl-listを希望する発表リストを手に入れることができます。ここにscreeen torrent構造http://i.imgur.com/Z4cPFhj.png url-ウェブシードのリストhttps://en.wikipedia.org/wiki/BitTorrent#Web_seeding –

+0

Torrentオブジェクトをデバッグするときは、そこには何がありますか? – KSib