X-Git-Url: https://git.cweiske.de/noxon-gateway.git/blobdiff_plain/2f2cf57a7f06584751fc14f28c879996fa870fad..daeda7055cd10cc88ca0966c8791c1c001e4e30f:/www/index.php?ds=sidebyside diff --git a/www/index.php b/www/index.php index d64436c..65f6715 100644 --- a/www/index.php +++ b/www/index.php @@ -8,12 +8,14 @@ if (isset($_SERVER['REDIRECT_URL'])) { } $dataDir = __DIR__ . '/../data/'; $varDir = realpath(__DIR__ . '/../var') . '/'; +$cacheDir = __DIR__ . '/../www/cache/'; $host1 = 'http://radio567.vtuner.com/'; $host2 = 'http://radio5672.vtuner.com/'; if ($_SERVER['HTTP_HOST'] !== '') { $host1 = 'http://' . $_SERVER['HTTP_HOST'] . '/'; $host2 = 'http://' . $_SERVER['HTTP_HOST'] . '/'; } +$cacheDirUrl = $host1 . 'cache/'; $cfgFile = $dataDir . 'config.php'; if (file_exists($cfgFile)) { include $cfgFile; @@ -41,6 +43,10 @@ if (strtolower($fullUri) == '/setupapp/radio567/asp/browsexpa/loginxml.asp?token } else if ($path == '/RadioNativeFavorites.php') { //Favorites, defined via web interface sendMessage('Unsupported'); +} else if ($path == '/transcode') { + require_once 'mediatomb.php'; + transcodeMediatombItem($_GET['mtParentId'], $_GET['mtItemTitle']); + exit(); } handleRequest(ltrim($path, '/')); @@ -193,7 +199,7 @@ function getEpisodeItem($title, $fullUrl, $desc, $type) return '' . 'ShowEpisode' . '' . utf8_decode(htmlspecialchars($title)) . '' - . '' . $fullUrl . '' + . '' . htmlspecialchars($fullUrl) . '' . '' . utf8_decode(htmlspecialchars($desc)) . '' . '' . $type . '' . '';