- $files = glob(__DIR__ . '/../var/podcasts/*.url');
- if (count($files) == 0) {
- sendMessage('Keine Podcasts');
- return;
- }
-
- $listItems = array();
- foreach ($files as $file) {
- $title = basename($file, '.url');
- $listItems[] = '<Item>'
- . '<ItemType>ShowOnDemand</ItemType>'
- . '<ShowOnDemandName>' . htmlspecialchars($title) . '</ShowOnDemandName>'
- . '<ShowOnDemandURL>http://radio567.vtuner.com/podcasts/' . urlencode(basename($file)) . '</ShowOnDemandURL>'
- . '</Item>';
- }
- sendListItems($listItems);
-}