From 6546f44cb24756e89fd748938884add989362051 Mon Sep 17 00:00:00 2001 From: emeric Date: Thu, 25 Jun 2020 16:36:07 +0200 Subject: [PATCH] Force rescan for Better detection of embedded covers for vorbis/opus ogg files. ref #71 --- src/libs/database/impl/Session.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libs/database/impl/Session.cpp b/src/libs/database/impl/Session.cpp index 7cb92cbe..7cf91fcf 100644 --- a/src/libs/database/impl/Session.cpp +++ b/src/libs/database/impl/Session.cpp @@ -40,7 +40,7 @@ namespace Database { -#define LMS_DATABASE_VERSION 23 +#define LMS_DATABASE_VERSION 24 using Version = std::size_t; @@ -261,6 +261,12 @@ CREATE TABLE "user_backup" ( // Just increment the scan version of the settings to make the next scheduled scan rescan everything ScanSettings::get(*this).modify()->incScanVersion(); } + else if (version == 23) + { + // Better cover detection + // Just increment the scan version of the settings to make the next scheduled scan rescan everything + ScanSettings::get(*this).modify()->incScanVersion(); + } else { LMS_LOG(DB, ERROR) << "Database version " << version << " cannot be handled using migration";