lt sync 2987
This commit is contained in:
parent
eefa2f49a0
commit
8a2d110ef6
@ -451,6 +451,8 @@ namespace libtorrent
|
|||||||
|
|
||||||
boost::shared_ptr<torrent_plugin> create_ut_metadata_plugin(torrent* t, void*)
|
boost::shared_ptr<torrent_plugin> 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<torrent_plugin>();
|
||||||
return boost::shared_ptr<torrent_plugin>(new ut_metadata_plugin(*t));
|
return boost::shared_ptr<torrent_plugin>(new ut_metadata_plugin(*t));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user