From 4314b635f170c3ea41b1791e6fe1135fa6a67466 Mon Sep 17 00:00:00 2001 From: Kevin James 'purdyk' Purdy Date: Fri, 15 Feb 2008 22:28:14 +0000 Subject: Fixed rss feeds to show proper length of song and artist names. --- lib/rss.php | 8 ++++---- templates/show_now_playing_row.inc.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/rss.php b/lib/rss.php index 4f0b1b9c..7f583380 100644 --- a/lib/rss.php +++ b/lib/rss.php @@ -226,14 +226,14 @@ switch ($type) { $song = $r['song']; $user = $r['user']; $song->format(); - $artist = $song->f_artist; - $album = $song->get_album_name(); - $text = "$artist - $song->f_title played by $user->fullname"; + $artist = $song->f_artist_full; + $album = $song->f_album_full; + $text = "$artist - $song->title played by $user->fullname"; echo " \n"; echo " <![CDATA[$text]]> \n"; echo " $web_path/image.php?id=$song->album\n"; echo " $web_path/albums.php?action=show&album=$song->album\n"; - echo " f_title @ $album is played by $user->fullname]]>\n"; + echo " title @ $album is played by $user->fullname]]>\n"; echo " $today\n"; echo "\n"; } diff --git a/templates/show_now_playing_row.inc.php b/templates/show_now_playing_row.inc.php index 4c80e462..afb5c3b7 100644 --- a/templates/show_now_playing_row.inc.php +++ b/templates/show_now_playing_row.inc.php @@ -20,9 +20,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Prepare the variables */ -$title = scrub_out(truncate_with_ellipsis($song->title,'25')); -$album = scrub_out(truncate_with_ellipsis($song->f_album_full,'25')); -$artist = scrub_out(truncate_with_ellipsis($song->f_artist_full,'25')); +$title = scrub_out(truncate_with_ellipsis($song->title)); +$album = scrub_out(truncate_with_ellipsis($song->f_album_full)); +$artist = scrub_out(truncate_with_ellipsis($song->f_artist_full)); ?>
-- cgit