From a1f8e59f52913696d8b02dcf9c47ae30ec4e6b97 Mon Sep 17 00:00:00 2001 From: methodus Date: Fri, 4 Jan 2013 11:32:53 +0100 Subject: Reversed last commit. Using now recording name. Recording title is a bit confusing, as it does not only contain information about the content but also the recording itself. --- plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp b/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp index 3e14e67..4b835cc 100644 --- a/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp +++ b/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp @@ -198,7 +198,11 @@ private: metadata.SetParentIDByUri(fs); metadata.SetProperty(cMetadata::Property(property::object::KEY_RESTRICTED, true)); - metadata.SetProperty(cMetadata::Property(property::object::KEY_TITLE, tools::ToUTF8String(recording->Title()))); + string title = tools::ToUTF8String(recording->Name()); + // Replace Episode delimiter if existent: + std::replace(title.begin(), title.end(), '~', ':'); + + metadata.SetProperty(cMetadata::Property(property::object::KEY_TITLE, title)); metadata.SetProperty(cMetadata::Property(property::object::KEY_DESCRIPTION, tools::ToUTF8String(info->ShortText()?info->ShortText():""))); metadata.SetProperty(cMetadata::Property(property::object::KEY_LONG_DESCRIPTION, tools::ToUTF8String(info->Description()?info->Description():""))); -- cgit v1.2.3