From 7eceee6a2003be3e597724221fc3c3578758c30f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 20 Aug 2021 23:59:07 +1000 Subject: [PATCH] CDImage: Use display name for playlist titles --- src/common/cd_image.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/cd_image.cpp b/src/common/cd_image.cpp index 5c5dc5fb6..5b2879aa8 100644 --- a/src/common/cd_image.cpp +++ b/src/common/cd_image.cpp @@ -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; }