mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
Updated the code to allow a search to be made from UI to iTunes and return a mock result.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user