diff --git a/images/icon_thumb_down.png b/images/icon_thumb_down.png deleted file mode 100644 index 3c832d4c..00000000 Binary files a/images/icon_thumb_down.png and /dev/null differ diff --git a/images/icon_thumb_up.png b/images/icon_thumb_up.png deleted file mode 100644 index 2bd16ccf..00000000 Binary files a/images/icon_thumb_up.png and /dev/null differ diff --git a/images/icon_tick.png b/images/icon_tick.png new file mode 100644 index 00000000..a9925a06 Binary files /dev/null and b/images/icon_tick.png differ diff --git a/lib/class/song.class.php b/lib/class/song.class.php index bfe1e628..2fc034bb 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -353,6 +353,7 @@ class Song extends database_object implements media { return $array; } // compare_song_information + /** * update @@ -734,6 +735,28 @@ class Song extends database_object implements media { } // format_pattern + /** + * get_fields + * This returns all of the 'data' fields for this object, we need to filter out some that we don't + * want to present to a user, and add some that don't exist directly on the object but are related + */ + public static function get_fields() { + + $fields = get_class_vars('Song'); + + unset($fields['id'],$fields['_transcoded'],$fields['_fake'],$fields['cache_hit'],$fields['mime'],$fields['type']); + + // Some additional fields + $fields['tag'] = true; + $fields['catalog'] = true; +//FIXME: These are here to keep the ideas, don't want to have to worry about them for now +// $fields['rating'] = true; +// $fields['recently Played'] = true; + + return $fields; + + } // get_fields + /** * get_from_path * This returns all of the songs that exist under the specified path diff --git a/random.php b/random.php index ef488b76..34ff7c26 100644 --- a/random.php +++ b/random.php @@ -36,6 +36,8 @@ switch ($_REQUEST['action']) { case 'advanced': default: require_once Config::get('prefix') . '/templates/show_random.inc.php'; + require_once Config::get('prefix') . '/templates/show_random_rules.inc.php'; + break; } // end switch diff --git a/templates/show_democratic_playlist.inc.php b/templates/show_democratic_playlist.inc.php index fe1113da..50fb5cdc 100644 --- a/templates/show_democratic_playlist.inc.php +++ b/templates/show_democratic_playlist.inc.php @@ -70,9 +70,9 @@ foreach($object_ids as $row_id=>$object_data) {