mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
lt sync 2987
This commit is contained in:
parent
c6422b53df
commit
b4b7c50f6b
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue