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
+2
View File
@@ -92,10 +92,12 @@ DownloadStorer::unlink_files(const std::string& session_path) {
auto torrent_path = base_path;
auto libtorrent_path = base_path + ".libtorrent_resume";
auto rtorrent_path = base_path + ".rtorrent";
auto metadata_path = base_path + ".meta";
::unlink(libtorrent_path.c_str());
::unlink(rtorrent_path.c_str());
::unlink(torrent_path.c_str());
::unlink(metadata_path.c_str());
}
namespace {
+1
View File
@@ -82,5 +82,6 @@ void cancel_callback(void* target) { session::ThreadSessio
void cancel_callback_and_wait(void* target) { session::ThreadSessionInternal::thread_session()->cancel_callback_and_wait(target); }
session::SessionManager* manager() { return session::ThreadSessionInternal::thread_session()->manager(); }
std::string session_path() { return session::ThreadSessionInternal::thread_session()->manager()->path(); }
} // namespace session_thread