diff --git a/src/webui/api/serialize/serialize_torrent.cpp b/src/webui/api/serialize/serialize_torrent.cpp index a4979008b..50df565e6 100644 --- a/src/webui/api/serialize/serialize_torrent.cpp +++ b/src/webui/api/serialize/serialize_torrent.cpp @@ -108,6 +108,7 @@ QVariantMap serialize(const BitTorrent::TorrentHandle &torrent) {KEY_TORRENT_SUPER_SEEDING, torrent.superSeeding()}, {KEY_TORRENT_FORCE_START, torrent.isForced()}, {KEY_TORRENT_SAVE_PATH, Utils::Fs::toNativePath(torrent.savePath())}, + {KEY_TORRENT_CONTENT_PATH, Utils::Fs::toNativePath(torrent.contentPath())}, {KEY_TORRENT_ADDED_ON, torrent.addedTime().toSecsSinceEpoch()}, {KEY_TORRENT_COMPLETION_ON, torrent.completedTime().toSecsSinceEpoch()}, {KEY_TORRENT_TRACKER, torrent.currentTracker()}, diff --git a/src/webui/api/serialize/serialize_torrent.h b/src/webui/api/serialize/serialize_torrent.h index af0a01bae..022bb0821 100644 --- a/src/webui/api/serialize/serialize_torrent.h +++ b/src/webui/api/serialize/serialize_torrent.h @@ -58,6 +58,7 @@ const char KEY_TORRENT_TAGS[] = "tags"; const char KEY_TORRENT_SUPER_SEEDING[] = "super_seeding"; const char KEY_TORRENT_FORCE_START[] = "force_start"; const char KEY_TORRENT_SAVE_PATH[] = "save_path"; +const char KEY_TORRENT_CONTENT_PATH[] = "content_path"; const char KEY_TORRENT_ADDED_ON[] = "added_on"; const char KEY_TORRENT_COMPLETION_ON[] = "completion_on"; const char KEY_TORRENT_TRACKER[] = "tracker"; diff --git a/src/webui/webapplication.h b/src/webui/webapplication.h index 0ca070f21..da7ba12ff 100644 --- a/src/webui/webapplication.h +++ b/src/webui/webapplication.h @@ -43,7 +43,7 @@ #include "base/utils/net.h" #include "base/utils/version.h" -constexpr Utils::Version API_VERSION {2, 6, 0}; +constexpr Utils::Version API_VERSION {2, 6, 1}; class APIController; class WebApplication;