Skip to content

Commit

Permalink
bringing hot back
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wahlforss committed Feb 17, 2009
1 parent 56280e6 commit c438c20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/player.js
Expand Up @@ -287,7 +287,7 @@ SC.Player.prototype = {
smart : true,
smart_filter : {
search_term : q,
order: "created_at"
order: "hotness"
}
}
},self);
Expand Down Expand Up @@ -618,7 +618,7 @@ SC.Player.prototype = {
smart: true,
smart_filter: {
artist : track.user.permalink,
order: "created_at"
order: "hotness"
},
dontPersist : true,
dontShowPlaylistItem : true
Expand Down
8 changes: 4 additions & 4 deletions scripts/playlist.js
Expand Up @@ -153,8 +153,8 @@ SC.Playlist.prototype = {

if(pl.smart_filter.order == "hotness" && !pl.smart_filter.user_favorites) { // prevent favs hotness sorting API bug
baseUrl = baseUrl + "&order=" + pl.smart_filter.order + "&from_date=" + SC.utcYesterday() + "&to_date=" + SC.utcNow();
} else { // default to sort by created_at
baseUrl = baseUrl + "&order=created_at";
} else { // default to sort by hotness
baseUrl = baseUrl + "&order=hotness";
}
if(pl.smart_filter.genres) {
baseUrl = baseUrl + "&genres=" + pl.smart_filter.genres;
Expand Down Expand Up @@ -450,7 +450,7 @@ SC.Playlist.prototype = {
smart: true,
smart_filter: {
artist : track.user.permalink,
order: "created_at"
order: "hotness"
},
dontPersist : true,
dontShowPlaylistItem : true
Expand All @@ -475,7 +475,7 @@ SC.Playlist.prototype = {
smart: true,
smart_filter: {
genres : genre,
order: "created_at"
order: "hotness"
},
dontPersist : true,
dontShowPlaylistItem : true
Expand Down

0 comments on commit c438c20

Please sign in to comment.