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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user