Changed default media path to be the Collections directory if baseMediaPath is not set

This commit is contained in:
Don Honerbrink 2015-02-25 16:51:17 -06:00
parent 1b18117658
commit 55d014fb71

View File

@ -350,7 +350,7 @@ void Configuration::GetMediaPropertyAbsolutePath(std::string collectionName, std
std::string baseMediaPath; std::string baseMediaPath;
if(!GetPropertyAbsolutePath("baseMediaPath", baseMediaPath)) if(!GetPropertyAbsolutePath("baseMediaPath", baseMediaPath))
{ {
baseMediaPath = "Media"; baseMediaPath = "collections";
} }
if(mediaType == "manufacturer") if(mediaType == "manufacturer")
@ -359,7 +359,7 @@ void Configuration::GetMediaPropertyAbsolutePath(std::string collectionName, std
} }
else else
{ {
value = baseMediaPath + "/" + collectionName + "/" + Utils::UppercaseFirst(Utils::ToLower(mediaType)); value = baseMediaPath + "/" + collectionName + "/" + mediaType);
} }
} }