You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
486 B
16 lines
486 B
/// <reference path="../app.js" />
|
|
NzbDrone.AddSeries.SearchResultModel = Backbone.Model.extend({
|
|
mutators: {
|
|
seriesYear: function () {
|
|
var date = Date.utc.create(this.get('firstAired')).format('({yyyy})');
|
|
|
|
//don't append year, if the series name already has the name appended.
|
|
if (this.get('seriesName').endsWith(date)) {
|
|
return "";
|
|
} else {
|
|
return date;
|
|
}
|
|
}
|
|
}
|
|
});
|