Subsonic API: fixed regression on media retrieval entrypoints
This commit is contained in:
@@ -1837,8 +1837,8 @@ static std::map<std::string, RequestEntryPointInfo> requestEntryPoints
|
|||||||
using MediaRetrievalHandlerFunc = std::function<MediaRetrievalResult(RequestContext&, Wt::Http::ResponseContinuation*)>;
|
using MediaRetrievalHandlerFunc = std::function<MediaRetrievalResult(RequestContext&, Wt::Http::ResponseContinuation*)>;
|
||||||
static std::map<std::string, MediaRetrievalHandlerFunc> mediaRetrievalHandlers
|
static std::map<std::string, MediaRetrievalHandlerFunc> mediaRetrievalHandlers
|
||||||
{
|
{
|
||||||
{"/rest/stream", handleStream},
|
{"stream", handleStream},
|
||||||
{"/rest/getCoverArt", handleGetCoverArt},
|
{"getCoverArt", handleGetCoverArt},
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ Session::doDatabaseMigrationIfNeeded()
|
|||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
LMS_LOG(DB, ERROR) << "Database version " << version << " cannot be handled using migration";
|
LMS_LOG(DB, ERROR) << "Database version " << version << " cannot be handled using migration";
|
||||||
throw LmsException {outdatedMsg};
|
throw LmsException { LMS_DATABASE_VERSION > version ? outdatedMsg : "Server binary outdated, please upgrade it to handle this database"};
|
||||||
}
|
}
|
||||||
|
|
||||||
VersionInfo::get(*this).modify()->setVersion(LMS_DATABASE_VERSION);
|
VersionInfo::get(*this).modify()->setVersion(LMS_DATABASE_VERSION);
|
||||||
|
|||||||
Reference in New Issue
Block a user