From 9fa29078b1f2e97645a456cdf69b99153308b4f8 Mon Sep 17 00:00:00 2001 From: emb <> Date: Tue, 24 Feb 2015 22:23:27 -0600 Subject: [PATCH] add media search path for manufacturer (%baseMediaPath%/_Manufacturer) --- RetroFE/Source/Database/Configuration.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/RetroFE/Source/Database/Configuration.cpp b/RetroFE/Source/Database/Configuration.cpp index 994191f..9191c39 100644 --- a/RetroFE/Source/Database/Configuration.cpp +++ b/RetroFE/Source/Database/Configuration.cpp @@ -347,14 +347,20 @@ void Configuration::GetMediaPropertyAbsolutePath(std::string collectionName, std { return; } - std::string baseMediaPath; if(!GetPropertyAbsolutePath("baseMediaPath", baseMediaPath)) { baseMediaPath = "Media"; } - value = baseMediaPath + "/" + collectionName + "/" + Utils::ToLower(mediaType); + if(mediaType == "manufacturer") + { + value = baseMediaPath + "/_Manufacturer"; + } + else + { + value = baseMediaPath + "/" + collectionName + "/" + Utils::UppercaseFirst(Utils::ToLower(mediaType)); + } } void Configuration::GetCollectionAbsolutePath(std::string collectionName, std::string &value)