Subsonic API: fixed regression on media retrieval entrypoints

This commit is contained in:
emeric
2019-08-06 13:11:01 +02:00
parent d540240335
commit cf46f1a7c2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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);