Updated the code to allow a search to be made from UI to iTunes and return a mock result.

This commit is contained in:
Joseph Milazzo
2017-04-28 17:05:35 -05:00
parent 684e4f4c80
commit 2813fccc78
32 changed files with 1401 additions and 65 deletions
+31
View File
@@ -0,0 +1,31 @@
var Backbone = require('backbone');
var _ = require('underscore');
module.exports = Backbone.Model.extend({
urlRoot : window.NzbDrone.ApiRoot + '/artist',
defaults : {
episodeFileCount : 0,
episodeCount : 0,
isExisting : false,
status : 0
},
setAlbumsMonitored : function(seasonNumber) {
_.each(this.get('albums'), function(album) {
if (season.seasonNumber === seasonNumber) {
album.monitored = !album.monitored;
}
});
},
setAlbumPass : function(seasonNumber) {
_.each(this.get('albums'), function(album) {
if (album.seasonNumber >= seasonNumber) {
album.monitored = true;
} else {
album.monitored = false;
}
});
}
});