fix podcast redirection
[noxon-gateway.git] / src / podcasts.php
index 3acccbbb2a1713136be5febc605b60f57746a753..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;
@@ -35,7 +34,7 @@ function sendPodcast($path)
             'MP3'
         );
     }
-    sendListItems($listItems);
+    sendListItems($listItems, buildPreviousItem($path));
 }