diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index b1721c80..6f352cd4 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -1527,6 +1527,16 @@ std::vector OptionHandlerFactory::createOptionHandlers() op->setChangeOptionForReserved(true); handlers.push_back(op); } + { + OptionHandler* op(new BooleanOptionHandler( + PREF_BT_LOAD_SAVED_METADATA, TEXT_BT_LOAD_SAVED_METADATA, A2_V_FALSE, + OptionHandler::OPT_ARG)); + op->addTag(TAG_BITTORRENT); + op->setInitialOption(true); + op->setChangeGlobalOption(true); + op->setChangeOptionForReserved(true); + handlers.push_back(op); + } { OptionHandler* op(new DefaultOptionHandler( PREF_BT_LPD_INTERFACE, TEXT_BT_LPD_INTERFACE, NO_DEFAULT_VALUE, diff --git a/src/download_helper.cc b/src/download_helper.cc index 9a19fe2f..7caf8c43 100644 --- a/src/download_helper.cc +++ b/src/download_helper.cc @@ -237,23 +237,54 @@ std::shared_ptr createBtMagnetRequestGroup(const std::string& magnetLink, const std::shared_ptr