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*)>;
|
||||
static std::map<std::string, MediaRetrievalHandlerFunc> mediaRetrievalHandlers
|
||||
{
|
||||
{"/rest/stream", handleStream},
|
||||
{"/rest/getCoverArt", handleGetCoverArt},
|
||||
{"stream", handleStream},
|
||||
{"getCoverArt", handleGetCoverArt},
|
||||
};
|
||||
|
||||
void
|
||||
|
||||
@@ -100,7 +100,7 @@ Session::doDatabaseMigrationIfNeeded()
|
||||
{
|
||||
default:
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user