|
|
@ -20,17 +20,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
return percent;
|
|
|
|
return percent;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
banner : function () {
|
|
|
|
poster : function () {
|
|
|
|
var banner = _.find(this.get('images'), function (image) {
|
|
|
|
var poster = _.find(this.get('images'), function (image) {
|
|
|
|
return image.coverType === 1;
|
|
|
|
return image.coverType === 1;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (banner) {
|
|
|
|
if (poster) {
|
|
|
|
return banner.url;
|
|
|
|
return poster.url;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return undefined;
|
|
|
|
return undefined;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
smallPoster : function () {
|
|
|
|
|
|
|
|
var poster = this.get('poster');
|
|
|
|
|
|
|
|
var extension = '.' + poster.split('.').pop();
|
|
|
|
|
|
|
|
var withoutExtension = poster.substring(0, poster.length - extension.length);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return withoutExtension + '-138' + extension;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
traktUrl : function () {
|
|
|
|
traktUrl : function () {
|
|
|
|
return "http://trakt.tv/show/" + this.get('titleSlug');
|
|
|
|
return "http://trakt.tv/show/" + this.get('titleSlug');
|
|
|
|