CC-1665: Scheduled stream rebroadcasting and recording
-playlists load contents now correctly identify tracks vs streams
This commit is contained in:
parent
cf2f96ecf1
commit
8b2facaa96
15 changed files with 283 additions and 105 deletions
|
@ -575,9 +575,8 @@ var AIRTIME = (function(AIRTIME){
|
|||
aSelected = AIRTIME.library.getSelectedData();
|
||||
|
||||
for (i = 0, length = aSelected.length; i < length; i++) {
|
||||
if (aSelected[i].ftype === "audioclip") {
|
||||
aItems.push(aSelected[i].id);
|
||||
}
|
||||
var type = aSelected[i].ftype;
|
||||
aItems.push(new Array(aSelected[i].id, type));
|
||||
}
|
||||
|
||||
aReceiveItems = aItems;
|
||||
|
@ -648,7 +647,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
}
|
||||
|
||||
mod.fnNew = function() {
|
||||
var url = '/Webstream/new';
|
||||
var url = '/Playlist/new';
|
||||
|
||||
stopAudioPreview();
|
||||
|
||||
|
@ -765,7 +764,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
|
||||
mod.fnAddItems = function(aItems, iAfter, sAddType) {
|
||||
var sUrl = "/playlist/add-items";
|
||||
oData = {"ids": aItems, "afterItem": iAfter, "type": sAddType};
|
||||
oData = {"aItems": aItems, "afterItem": iAfter, "type": sAddType};
|
||||
|
||||
playlistRequest(sUrl, oData);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue