Removed some useless columns in the track table

This commit is contained in:
emeric
2025-06-25 22:59:55 +02:00
parent d1caed200b
commit ac84b891f6
10 changed files with 33 additions and 53 deletions
@@ -58,9 +58,11 @@ namespace lms::scanner
assert(!lyrics->getFileStem().empty());
params.setDirectory(lyrics->getDirectory()->getId());
params.setFileStem(stem);
db::Track::find(session, params, [&](const db::Track::pointer& track) {
if (track->getAbsoluteFilePath().filename().stem() != stem)
return;
if (matchingTrack)
LMS_LOG(DBUPDATER, DEBUG, "External lyrics '" << lyrics->getAbsoluteFilePath() << "' already matched with '" << matchingTrack->getAbsoluteFilePath() << "', replaced by '" << track->getAbsoluteFilePath() << "'");
@@ -68,7 +70,7 @@ namespace lms::scanner
});
};
// First try with the stem. If it does not match, try again with the parent steam, if it exists, to handle the file.laguagecode.lrc case
// First try with the stem. If it does not match, try again with the parent steam, if it exists, to handle the file.languagecode.lrc case
tryMatch(lyrics->getFileStem());
if (!matchingTrack)
{