Use ENCODINGTIME to set the added time, if present, otherwise use the last modified time of the file (only during the first import), fixes #595

This commit is contained in:
emeric
2025-01-18 16:51:31 +01:00
parent 5cfbbeca65
commit c73ff7dc03
11 changed files with 65 additions and 8 deletions
+7 -4
View File
@@ -202,9 +202,6 @@ namespace lms::metadata
for (const Artist& artist : track->remixerArtists)
std::cout << "Remixer: " << artist << std::endl;
if (track->medium)
std::cout << "Medium: " << *track->medium;
std::cout << "Title: " << track->title << std::endl;
if (track->mbid)
@@ -271,6 +268,12 @@ namespace lms::metadata
if (track->advisory)
std::cout << "Advisory: " << *track->advisory << std::endl;
if (track->encodingTime.isValid())
std::cout << "Encoding time: " << core::stringUtils::toISO8601String(track->encodingTime) << std::endl;
if (track->medium)
std::cout << "Medium: " << *track->medium;
std::cout << std::endl;
}
} // namespace lms::metadata
@@ -445,4 +448,4 @@ int main(int argc, char* argv[])
}
return EXIT_SUCCESS;
}
}