Removed some useless columns in the track table
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user