CC-84: Smart Playlists
- removed soundcloud_id criteria - added last_played criteria
This commit is contained in:
parent
d801139a12
commit
a67b2fa300
|
@ -21,6 +21,7 @@ class Application_Form_SmartPlaylistCriteria extends Zend_Form_SubForm
|
|||
"label" => "Label",
|
||||
"language" => "Language",
|
||||
"mtime" => "Last Modified",
|
||||
"lptime" => "Last Played",
|
||||
"length" => "Length",
|
||||
"lyricist" => "Lyricist",
|
||||
"mood" => "Mood",
|
||||
|
@ -29,7 +30,6 @@ class Application_Form_SmartPlaylistCriteria extends Zend_Form_SubForm
|
|||
"radio_station_name" => "Radio Station Name",
|
||||
"rating" => "Rating",
|
||||
"sample_rate" => "Sample Rate",
|
||||
"soundcloud_id" => "Soundcloud Upload",
|
||||
"track_title" => "Title",
|
||||
"track_num" => "Track Number",
|
||||
"utime" => "Uploaded",
|
||||
|
@ -47,6 +47,7 @@ class Application_Form_SmartPlaylistCriteria extends Zend_Form_SubForm
|
|||
"conductor" => "s",
|
||||
"utime" => "n",
|
||||
"mtime" => "n",
|
||||
"lptime" => "n",
|
||||
"disc_number" => "n",
|
||||
"genre" => "s",
|
||||
"isrc_number" => "s",
|
||||
|
@ -60,7 +61,6 @@ class Application_Form_SmartPlaylistCriteria extends Zend_Form_SubForm
|
|||
"radio_station_name" => "s",
|
||||
"rating" => "n",
|
||||
"sample_rate" => "n",
|
||||
"soundcloud_id" => "n",
|
||||
"track_title" => "s",
|
||||
"track_num" => "n",
|
||||
"year" => "n"
|
||||
|
|
|
@ -68,6 +68,7 @@ class Application_Model_Playlist
|
|||
"conductor" => "DbConductor",
|
||||
"utime" => "DbUtime",
|
||||
"mtime" => "DbMtime",
|
||||
"lptime" => "DbLPtime",
|
||||
"disc_number" => "DbDiscNumber",
|
||||
"genre" => "DbGenre",
|
||||
"isrc_number" => "DbIsrcNumber",
|
||||
|
@ -81,7 +82,6 @@ class Application_Model_Playlist
|
|||
"radio_station_name" => "DbRadioStation",
|
||||
"rating" => "DbRating",
|
||||
"sample_rate" => "DbSampleRate",
|
||||
"soundcloud_id" => "DbSoundcloudId",
|
||||
"track_title" => "DbTrackTitle",
|
||||
"track_num" => "DbTrackNum",
|
||||
"year" => "DbYear"
|
||||
|
|
|
@ -279,7 +279,7 @@ function callback(data, type) {
|
|||
if (type == 'shuffle') {
|
||||
form.find('.success').text('Playlist shuffled');
|
||||
} else {
|
||||
form.find('.success').text('Smart playlist generated');
|
||||
form.find('.success').text('Smart playlist generated and saved');
|
||||
}
|
||||
form.find('.success').show();
|
||||
form.find('#smart_playlist_options').removeClass("closed");
|
||||
|
@ -287,8 +287,9 @@ function callback(data, type) {
|
|||
form.find('.success').text('Criteria saved');
|
||||
form.find('.success').show();
|
||||
|
||||
/* Update number of files that meet criteria and
|
||||
* change icon to success/warning as appropriate
|
||||
/* Update number of files that meet criteria and change icon to success/warning
|
||||
* as appropriate. This is also done in the form but we do not pass the form
|
||||
* back on a 'Save' callback.
|
||||
*/
|
||||
if (json.poolCount > 1) {
|
||||
$('#sp_pool_count').text(json.poolCount+' files meet the criteria');
|
||||
|
@ -358,6 +359,7 @@ var criteriaTypes = {
|
|||
"conductor" : "s",
|
||||
"utime" : "n",
|
||||
"mtime" : "n",
|
||||
"lptime" : "n",
|
||||
"disc_number" : "n",
|
||||
"genre" : "s",
|
||||
"isrc_number" : "s",
|
||||
|
@ -371,7 +373,6 @@ var criteriaTypes = {
|
|||
"radio_station_name" : "s",
|
||||
"rating" : "n",
|
||||
"sample_rate" : "n",
|
||||
"soundcloud_id" : "n",
|
||||
"track_title" : "s",
|
||||
"track_num" : "n",
|
||||
"year" : "n"
|
||||
|
|
Loading…
Reference in New Issue