From 5308de69febd3283def556dcc2802e3301846bb6 Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 12 Aug 2016 18:46:59 -0400 Subject: [PATCH] make dump_torrent print web seeds --- examples/dump_torrent.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/dump_torrent.cpp b/examples/dump_torrent.cpp index b9aeb61b6..75c950644 100644 --- a/examples/dump_torrent.cpp +++ b/examples/dump_torrent.cpp @@ -216,6 +216,13 @@ int main(int argc, char* argv[]) , (flags & file_storage::flag_symlink) ? "-> " : "" , (flags & file_storage::flag_symlink) ? st.symlink(i).c_str() : ""); } + std::printf("web seeds:\n"); + for (auto const& ws : t.web_seeds()) + { + std::printf("%s %s\n" + , ws.type == web_seed_entry::url_seed ? "BEP19" : "BEP17" + , ws.url.c_str()); + } return 0; }