summaryrefslogtreecommitdiff
path: root/www/js/rdxport.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/rdxport.js')
-rw-r--r--www/js/rdxport.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/rdxport.js b/www/js/rdxport.js
index 44198ed..64dbf51 100644
--- a/www/js/rdxport.js
+++ b/www/js/rdxport.js
@@ -506,7 +506,7 @@ Rdxport.Cart.prototype.removeCut = function(cut) {
};
Rdxport.Cut = function(name, description, cart, length, originDatetime,
- playCounter, lastPlayDatetime) {
+ playCounter, lastPlayDatetime, isEvergreen) {
this.xml = null;
if (arguments.length === 2) {
@@ -518,6 +518,7 @@ Rdxport.Cut = function(name, description, cart, length, originDatetime,
this.playCounter = $('playCounter', this.xml).text();
this.lastPlayDatetime = new Date(new Date($('lastPlayDatetime', this.xml).text()) - 5000); // playout-server live 5s in the future
this.cart = arguments[1];
+ this.isEvergreen = ($('evergreen', this.xml).text().toLowerCase() == "true");
} else {
this.name = name;
this.description = description;
@@ -526,6 +527,7 @@ Rdxport.Cut = function(name, description, cart, length, originDatetime,
this.originDatetime = new Date(originDatetime);
this.playCounter = playCounter;
this.lastPlayDatetime = new Date(new Date(lastPlayDatetime) - 5000); // playout-server live 5s in the future
+ this.isEvergreen = isEvergreen
}
this.number = this.name.substr(-3);
this.cartNumber = this.cart.number;