make dump_torrent print web seeds

This commit is contained in:
arvidn 2016-08-12 18:46:59 -04:00
parent e36e5efaba
commit 5308de69fe
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}