diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-01-01 22:34:12 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-01-01 22:34:12 +0000 |
commit | 6a0573d1fe8b12f1adacf3924de9808401f8e7b6 (patch) | |
tree | 17143ae90ed05facaf54e00825bc190bd20e21aa /lib/class | |
parent | 850edbb1f20ce3cfd8be5f6fe93207ba9a56db3a (diff) | |
download | ampache-6a0573d1fe8b12f1adacf3924de9808401f8e7b6.tar.gz ampache-6a0573d1fe8b12f1adacf3924de9808401f8e7b6.tar.bz2 ampache-6a0573d1fe8b12f1adacf3924de9808401f8e7b6.zip |
slight tweak to the random album art, needs improvement will look funny on catalogs with no art (for now) editing an mpd instance works, need to fix httpq editing and add instance testing
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/localplay.abstract.php | 1 | ||||
-rw-r--r-- | lib/class/localplay.class.php | 2 | ||||
-rw-r--r-- | lib/class/update.class.php | 17 |
3 files changed, 19 insertions, 1 deletions
diff --git a/lib/class/localplay.abstract.php b/lib/class/localplay.abstract.php index 36901a67..9eebdbe2 100644 --- a/lib/class/localplay.abstract.php +++ b/lib/class/localplay.abstract.php @@ -41,6 +41,7 @@ abstract class localplay_controller { // For display we need the following 'instance' functions abstract public function add_instance($data); abstract public function delete_instance($id); + abstract public function update_instance($id,$post); abstract public function get_instances(); abstract public function instance_fields(); abstract public function set_active_instance($uid); diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 43d4bca1..1a4c8bef 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -545,7 +545,7 @@ class Localplay { */ public function update_instance($uid,$data) { - $data = $this->_player->update_instance($uid); + $data = $this->_player->update_instance($uid,$data); return $data; diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 9a6be243..75bc8fc3 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -1108,5 +1108,22 @@ class Update { } // update_340014 + /** + * update_340015 + * This update tweaks the playlist table responding to complaints from usres + * who say it doesn't work, unreproduceable. This also adds an index to the + * album art table to try to make the random album art faster + */ + public static function update_340015() { + + $sql = "ALTER TABLE `album_data` ADD INDEX `album_art` `album_id`,`art`(5)"; + $db_results = Dba::query($sql); + + $sql = "ALTER TABLE `playlist` CHANGE `date` `date` INT ( 11 ) UNSIGNED"; + $db_results = Dba::query($sql); + + + } // update_340015 + } // end update class ?> |