Subsonic API: added the getScanStatus and startScan commands. fixes #62

This commit is contained in:
emeric
2020-06-20 14:31:53 +02:00
parent 70e847ce36
commit 73acd65bb3
11 changed files with 146 additions and 25 deletions
+3 -2
View File
@@ -42,6 +42,7 @@
#include "utils/Utils.hpp"
#include "ParameterParsing.hpp"
#include "RequestContext.hpp"
#include "Scan.hpp"
#include "Stream.hpp"
#include "SubsonicResponse.hpp"
@@ -1860,8 +1861,8 @@ static std::unordered_map<std::string, RequestEntryPointInfo> requestEntryPoints
{"savePlayQueue", {handleNotImplemented, false}},
// Media library scanning
{"getScanStatus", {handleNotImplemented, true}},
{"startScan", {handleNotImplemented, true}},
{"getScanStatus", {Scan::handleGetScanStatus, true}},
{"startScan", {Scan::handleStartScan, true}},
};
using MediaRetrievalHandlerFunc = std::function<void(RequestContext&, const Wt::Http::Request&, Wt::Http::Response&)>;