Skip to content

Commit

Permalink
CDImage: Use display name for playlist titles
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 21, 2021
1 parent 1081c13 commit 7eceee6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/cd_image.cpp
Expand Up @@ -291,7 +291,10 @@ std::string CDImage::GetMetadata(const std::string_view& type) const
{
std::string result;
if (type == "title")
result = FileSystem::GetFileTitleFromPath(m_filename);
{
const std::string display_name(FileSystem::GetDisplayNameFromPath(m_filename));
result = FileSystem::StripExtension(display_name);
}

return result;
}
Expand Down

0 comments on commit 7eceee6

Please sign in to comment.