mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-21 19:16:52 +02:00
Changed default media path to be the Collections directory if baseMediaPath is not set
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user