diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-06-04 12:08:08 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-06-04 12:08:08 -0400 |
commit | d2f3ef1ab980e20a2c82663e5b3d1ed96ed8fad1 (patch) | |
tree | 890a9b40f5a1d8ea54efde93a6a1c68bcb2c0314 | |
parent | 88196ce34b5db3e681e8606440726dc0f7701501 (diff) | |
download | ampache-d2f3ef1ab980e20a2c82663e5b3d1ed96ed8fad1.tar.gz ampache-d2f3ef1ab980e20a2c82663e5b3d1ed96ed8fad1.tar.bz2 ampache-d2f3ef1ab980e20a2c82663e5b3d1ed96ed8fad1.zip |
Scrub output fields in ASX playlists
Closes GH #35
-rw-r--r-- | lib/class/stream_playlist.class.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/class/stream_playlist.class.php b/lib/class/stream_playlist.class.php index 471188e9..e0d2e39e 100644 --- a/lib/class/stream_playlist.class.php +++ b/lib/class/stream_playlist.class.php @@ -292,11 +292,12 @@ class Stream_Playlist { foreach ($this->urls as $url) { echo "<ENTRY>\n"; - echo '<TITLE>' . $url->title . "</TITLE>\n"; - echo '<AUTHOR>' . $url->author . "</AUTHOR>\n"; + echo '<TITLE>' . scrub_out($url->title) . "</TITLE>\n"; + echo '<AUTHOR>' . scrub_out($url->author) . "</AUTHOR>\n"; + //FIXME: duration looks hacky and wrong echo "\t\t" . '<DURATION VALUE="00:00:' . $url->time . '" />' . "\n"; - echo "\t\t" . '<PARAM NAME="Album" Value="' . $url->album . '" />' . "\n"; - echo "\t\t" . '<PARAM NAME="Composer" Value="' . $url->author . '" />' . "\n"; + echo "\t\t" . '<PARAM NAME="Album" Value="' . scrub_out($url->album) . '" />' . "\n"; + echo "\t\t" . '<PARAM NAME="Composer" Value="' . scrub_out($url->author) . '" />' . "\n"; echo "\t\t" . '<PARAM NAME="Prebuffer" Value="false" />' . "\n"; echo '<REF HREF = "' . $url->url . '" />' . "\n"; echo "</ENTRY>\n"; |