Using long names for codec field to keep consistency with global filter values
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
@@ -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()));
|
||||||
|
|||||||
Reference in New Issue
Block a user