mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-29 10:25:42 -04:00
CDImage: Use display name for playlist titles
This commit is contained in:
parent
1081c132cf
commit
7eceee6a20
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user