add media search path for manufacturer (%baseMediaPath%/_Manufacturer)

This commit is contained in:
emb 2015-02-24 22:23:27 -06:00
parent dbf51f62d8
commit 9fa29078b1

View File

@ -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)