Making a video temporary no longer uncaches it

This commit is contained in:
calzoneman 2013-05-04 18:41:56 -05:00
parent d0a42a614b
commit 9ea04b9f01

View file

@ -789,12 +789,7 @@ Channel.prototype.setTemp = function(idx, temp) {
temp: temp
});
if(temp) {
if(Database.uncacheMedia(this.name, med.id)) {
delete this.library[med.id];
}
}
else {
if(!temp) {
this.cacheMedia(med);
}
}