Added MBID in the scanner's report list to make duplicate spotting easier. fixes #103

This commit is contained in:
emeric
2020-11-03 16:19:32 +01:00
parent 3599dc8659
commit 3a311c35ff
3 changed files with 22 additions and 5 deletions
+1 -1
View File
@@ -1012,7 +1012,7 @@ MediaScanner::checkDuplicatedAudioFiles(ScanStats& stats)
if (track->getMBID())
{
LMS_LOG(DBUPDATER, INFO) << "Found duplicated MBID [" << track->getMBID()->getAsString() << "], file: " << track->getPath().string() << " - " << track->getName();
stats.duplicates.emplace_back(ScanDuplicate {track->getPath(), DuplicateReason::SameMBID});
stats.duplicates.emplace_back(ScanDuplicate {track.id(), DuplicateReason::SameMBID});
}
}
@@ -24,6 +24,8 @@
#include <filesystem>
#include <vector>
#include "database/Types.hpp"
namespace Scanner {
enum class ScanErrorType
@@ -51,9 +53,8 @@ namespace Scanner {
struct ScanDuplicate
{
std::filesystem::path file;
Database::IdType trackId;
DuplicateReason reason;
};
enum class ScanProgressStep : unsigned