mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 08:36:43 +02:00
Set title meta data for FileStream
This commit is contained in:
parent
cece83819f
commit
2b6774bdca
2 changed files with 10 additions and 9 deletions
|
@ -27,6 +27,7 @@
|
|||
// 3rd party headers
|
||||
|
||||
// standard headers
|
||||
#include <filesystem>
|
||||
#include <memory>
|
||||
|
||||
|
||||
|
@ -50,6 +51,12 @@ FileStream::FileStream(PcmStream::Listener* pcmListener, boost::asio::io_context
|
|||
{
|
||||
throw SnapException("Not a regular file: \"" + uri_.path + "\"");
|
||||
}
|
||||
|
||||
Properties properties;
|
||||
Metadata meta;
|
||||
meta.title = std::filesystem::path(uri_.path).filename().replace_extension("");
|
||||
properties.metadata = meta;
|
||||
setProperties(properties);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue