Added media.system_artwork path parameter support to settings.conf.

This commit is contained in:
emb 2015-10-19 22:05:30 -05:00
parent 1785c008a1
commit 4d4acca35f
2 changed files with 5 additions and 0 deletions

View File

@ -131,6 +131,7 @@ bool CollectionInfoBuilder::createCollectionDirectory(std::string name)
settingsFile << "#media.screenshot = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "medium_artwork", "screenshot") << std::endl;
settingsFile << "#media.screentitle = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "medium_artwork", "screentitle") << std::endl;
settingsFile << "#media.video = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "medium_artwork", "video") << std::endl;
settingsFile << "#media.system_artwork = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "system_artwork") << std::endl;
settingsFile.close();
filename = Utils::combinePath(collectionPath, "menu.txt");

View File

@ -332,6 +332,10 @@ void Configuration::getMediaPropertyAbsolutePath(std::string collectionName, std
void Configuration::getMediaPropertyAbsolutePath(std::string collectionName, std::string mediaType, bool system, std::string &value)
{
std::string key = "collections." + collectionName + ".media." + mediaType;
if (system)
{
key = "collections." + collectionName + ".media.system_artwork";
}
// use user-overridden setting if it exists
if(getPropertyAbsolutePath(key, value))