fix podcast redirection
[noxon-gateway.git] / src / podcasts.php
index 68d133ce057f4dd34e581b39b852689bc7d7978d..bb8f5ce7d675988482cbfe2a4620b216701f3f5e 100644 (file)
@@ -21,7 +21,6 @@ function sendPodcast($path)
     
     $sx = simplexml_load_file($cacheFile);
     $listItems = array();
-    addPreviousItem($listItems, $path);
 
     foreach ($sx->channel->item as $item) {
         $title = (string) $item->title;
@@ -30,12 +29,12 @@ function sendPodcast($path)
 
         $listItems[] = getEpisodeItem(
             $title,
-            $host1 . 'play-url?url=' . urlencode($url),
+            $host1 . 'deredirect.php?url=' . urlencode($url),
             $desc,
             'MP3'
         );
     }
-    sendListItems($listItems);
+    sendListItems($listItems, buildPreviousItem($path));
 }