added caching breaker to media cover images.

This commit is contained in:
Keivan Beigi 2013-06-12 18:37:05 -07:00
commit 38589742e3
10 changed files with 115 additions and 54 deletions

View file

@ -17,14 +17,27 @@ define(['app', 'Quality/QualityProfileCollection'], function (app, qualityProfil
return percent;
},
banner : function () {
return "/mediacover/" + this.get('id') + "/banner.jpg";
},
poster : function () {
return "/mediacover/" + this.get('id') + "/poster.jpg";
var poster = _.find(this.get('images'), function (image) {
return image.coverType === 'poster';
});
if (poster) {
return poster.url;
}
return undefined;
},
fanArt : function () {
return "/mediacover/" + this.get('id') + "/fanart.jpg";
var poster = _.find(this.get('images'), function (image) {
return image.coverType === 3;
});
if (poster) {
return poster.url;
}
return undefined;
},
traktUrl : function () {
return "http://trakt.tv/show/" + this.get('titleSlug');