Changed magnet metadata handling and added 'magnet.path.set'.

This commit is contained in:
rakshasa
2025-12-31 21:47:29 +01:00
committed by Jari Sundell
parent def6551488
commit 0b0c824b4b
7 changed files with 37 additions and 3 deletions
+10
View File
@@ -132,6 +132,16 @@ Manager::retrieve_throttle_value(const torrent::Object::string_type& name, bool
}
}
void
Manager::set_magnet_path(const std::string& path) {
if (path.empty())
m_magnet_path.clear();
else if (path.back() == '/')
m_magnet_path = path;
else
m_magnet_path = path + '/';
}
void
Manager::cleanup() {
// Need to disconnect log signals? Not really since we won't receive