diff --git a/deluge/core/core.py b/deluge/core/core.py index e58f6075a..ed0c9a75f 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -181,7 +181,8 @@ class Core( # Load metadata extension self.session.add_extension(lt.create_metadata_plugin) - + self.session.add_extension(lt.create_ut_metadata_plugin) + # Start the AlertManager self.alerts = AlertManager(self.session) diff --git a/libtorrent/bindings/python/src/extensions.cpp b/libtorrent/bindings/python/src/extensions.cpp index acb8f2457..9489f99a1 100755 --- a/libtorrent/bindings/python/src/extensions.cpp +++ b/libtorrent/bindings/python/src/extensions.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include "gil.hpp" @@ -114,6 +115,10 @@ boost::shared_ptr create_metadata_plugin_wrapper(torrent* t) { return create_metadata_plugin(t, NULL); } +boost::shared_ptr create_ut_metadata_plugin_wrapper(torrent *t) { + return create_ut_metadata_plugin(t, NULL); +} + boost::shared_ptr create_ut_pex_plugin_wrapper(torrent* t) { return create_ut_pex_plugin(t, NULL); } @@ -154,6 +159,7 @@ void bind_extensions() class_ >("torrent_plugin", no_init); def("create_ut_pex_plugin", create_ut_pex_plugin_wrapper); def("create_metadata_plugin", create_metadata_plugin_wrapper); + def("create_ut_metadata_plugin", create_ut_metadata_plugin_wrapper); }