X-Git-Url: https://git.cweiske.de/noxon-gateway.git/blobdiff_plain/66f8b109c6f8ddeb0c0c106641e7ae16da354b7d..49f9d0097f92966d8d09cb8eb05708425ea3e5ab:/src/podcasts.php diff --git a/src/podcasts.php b/src/podcasts.php index 1756ed5..bb8f5ce 100644 --- a/src/podcasts.php +++ b/src/podcasts.php @@ -21,22 +21,20 @@ function sendPodcast($path) $sx = simplexml_load_file($cacheFile); $listItems = array(); - addPreviousItem($listItems, $path); foreach ($sx->channel->item as $item) { $title = (string) $item->title; $desc = (string) $item->description; $url = $item->enclosure['url']; - $listItems[] = '' - . 'ShowEpisode' - . '' . utf8_decode(htmlspecialchars($title)) . '' - . '' . $host1 . 'play-url?url=' . urlencode($url) . '' - . '' . utf8_decode(htmlspecialchars($desc)) . '' - . 'MP3' - . ''; + $listItems[] = getEpisodeItem( + $title, + $host1 . 'deredirect.php?url=' . urlencode($url), + $desc, + 'MP3' + ); } - sendListItems($listItems); + sendListItems($listItems, buildPreviousItem($path)); }