diff --git a/src/ut_metadata.cpp b/src/ut_metadata.cpp index 9699afe5e..cc3bb8cce 100644 --- a/src/ut_metadata.cpp +++ b/src/ut_metadata.cpp @@ -428,6 +428,8 @@ namespace libtorrent boost::shared_ptr create_ut_metadata_plugin(torrent* t, void*) { + // don't add this extension if the torrent is private + if (t->valid_metadata() && t->torrent_file().priv()) return boost::shared_ptr(); return boost::shared_ptr(new ut_metadata_plugin(*t)); }