From d61f395465ed22effccd154782fde7f78f903dbf Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 29 Jul 2007 22:27:45 +0000 Subject: more tweaks, hopefully fixing the flash player mostly needs to be embeded to fix some remaining bugs --- lib/class/catalog.class.php | 6 +++--- lib/class/stream.class.php | 4 ++-- modules/flash/xspf_player.php | 34 +++++++++++++++++++++++++++++++--- templates/show_artist.inc.php | 5 ----- templates/show_login_form.inc | 2 +- templates/show_xspf_player.inc.php | 2 +- 6 files changed, 38 insertions(+), 15 deletions(-) diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index e92b1942..61bc19fa 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -1408,7 +1408,7 @@ class Catalog { * clean_playlists * cleans out dead files from playlists */ - public static function clean_playlists($catalog_id) { + public static function clean_playlists() { /* Do a complex delete to get playlist songs where there are no songs */ $sql = "DELETE FROM playlist_data USING playlist_data LEFT JOIN song ON song.id = playlist_data.song WHERE song.file IS NULL"; @@ -1424,7 +1424,7 @@ class Catalog { * clean_ext_info * This function clears any ext_info that no longer has a parent */ - public static function clean_ext_info($catalog_id) { + public static function clean_ext_info() { $sql = "DELETE FROM `song_data` USING `song_data` LEFT JOIN `song` ON `song`.`id` = `song_data`.`song_id` " . "WHERE `song`.`id` IS NULL"; @@ -1436,7 +1436,7 @@ class Catalog { * clean_stats * This functions removes stats for songs/albums that no longer exist */ - public static function clean_stats($catalog_id) { + public static function clean_stats() { // Crazy SQL Mojo to remove stats where there are no songs $sql = "DELETE FROM object_count USING object_count LEFT JOIN song ON song.id=object_count.object_id WHERE object_type='song' AND song.id IS NULL"; diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index 2f5c4aee..6fca492c 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -302,7 +302,7 @@ class Stream { /* Add the songs to this new playlist */ foreach ($this->songs as $song_id) { - $tmp_playlist->add_object($song_id); + $tmp_playlist->add_object($song_id,'song'); } // end foreach /* Build the extra info we need to have it pass */ @@ -321,7 +321,7 @@ class Stream { echo "