- $listItems[] = '<Item>'
- . '<ItemType>ShowEpisode</ItemType>'
- . '<ShowEpisodeName>' . utf8_decode(htmlspecialchars($title)) . '</ShowEpisodeName>'
- . '<ShowEpisodeURL>' . $host1 . 'play-url?url=' . urlencode($url) . '</ShowEpisodeURL>'
- . '<ShowDesc>' . utf8_decode(htmlspecialchars($desc)) . '</ShowDesc>'
- . '<ShowMime>MP3</ShowMime>'
- . '</Item>';
+ $listItems[] = getEpisodeItem(
+ $title,
+ $urlHandler . '?url=' . urlencode($url),
+ $desc,
+ 'MP3'
+ );