Category subtitles config option
[stouyapi.git] / bin / import-game-data.php
index 5ee582e9501c18220fa8913f437691ab6f06ea30..44f9b635f10c0d1d4b2a7a259e87fc84145b57c1 100755 (executable)
@@ -19,6 +19,7 @@ if (!is_file($foldersFile)) {
 
 //default configuration values
 $GLOBALS['baseUrl']      = 'http://ouya.cweiske.de/';
+$GLOBALS['categorySubtitles'] = [];
 $GLOBALS['packagelists'] = [];
 $GLOBALS['urlRewrites']  = [];
 $cfgFile = __DIR__ . '/../config.php';
@@ -290,6 +291,9 @@ function buildDiscoverCategory($name, $games)
         'rows'  => [],
         'tiles' => [],
     ];
+    if (isset($GLOBALS['categorySubtitles'][$name])) {
+        $data['stouyapi']['subtitle'] = $GLOBALS['categorySubtitles'][$name];
+    }
 
     if (count($games) >= 20) {
         addDiscoverRow(