mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
much nicer add new series.
This commit is contained in:
parent
a052a9389e
commit
4be637edff
16 changed files with 87 additions and 87 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['app', 'Quality/QualityProfileCollection'], function (app, qualityProfileCollection) {
|
||||
define(['app', 'Quality/QualityProfileCollection', 'AddSeries/RootFolders/RootFolderCollection'], function (app, qualityProfileCollection, rootFolders) {
|
||||
NzbDrone.Series.SeriesModel = Backbone.Model.extend({
|
||||
|
||||
urlRoot: NzbDrone.Constants.ApiRoot + '/series',
|
||||
|
@ -19,13 +19,29 @@
|
|||
}
|
||||
|
||||
return percent;
|
||||
},
|
||||
banner : function () {
|
||||
var banner = _.find(this.get('images'), function (image) {
|
||||
return image.coverType === 1;
|
||||
});
|
||||
|
||||
if (banner) {
|
||||
return banner.url;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
||||
},
|
||||
traktUrl : function () {
|
||||
return "http://trakt.tv/show/" + this.get('titleSlug');
|
||||
}
|
||||
},
|
||||
|
||||
defaults: {
|
||||
episodeFileCount: 0,
|
||||
episodeCount : 0,
|
||||
qualityProfiles : qualityProfileCollection
|
||||
qualityProfiles : qualityProfileCollection,
|
||||
rootFolders : rootFolders
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue