Using long names for codec field to keep consistency with global filter values

This commit is contained in:
emeric
2025-12-10 21:35:21 +01:00
parent ca5db1ebf9
commit 622efff7f5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ namespace lms::ui
{ {
if (!codecStr.empty()) if (!codecStr.empty())
codecStr += " · "; codecStr += " · ";
codecStr += core::media::getCodecDesc(codec).name.str(); codecStr += core::media::getCodecDesc(codec).longName.str();
} }
if (!codecStr.empty()) if (!codecStr.empty())
+1 -1
View File
@@ -130,7 +130,7 @@ namespace lms::ui::TrackListHelpers
if (const auto codec{ track->getCodec() }) if (const auto codec{ track->getCodec() })
{ {
trackInfo->setCondition("if-has-codec", true); trackInfo->setCondition("if-has-codec", true);
trackInfo->bindString("codec", core::media::getCodecDesc(*codec).name.c_str(), Wt::TextFormat::Plain); trackInfo->bindString("codec", core::media::getCodecDesc(*codec).longName.c_str(), Wt::TextFormat::Plain);
} }
trackInfo->bindString("duration", utils::durationToString(track->getDuration())); trackInfo->bindString("duration", utils::durationToString(track->getDuration()));