Merge pull request #821 from timhobbs/upstream-master

Fix for media player thumbs
This commit is contained in:
Luke 2014-05-14 14:44:26 -04:00
commit 7e59439474

View File

@ -484,29 +484,29 @@
var url = "";
if (state.primaryImageTag) {
if (state.NowPlayingItem.PrimaryImageTag) {
url = ApiClient.getImageUrl(state.primaryImageItemId, {
url = ApiClient.getImageUrl(state.NowPlayingItem.PrimaryImageItemId, {
type: "Primary",
height: 80,
tag: state.primaryImageTag
tag: state.NowPlayingItem.PrimaryImageTag
});
}
else if (state.backdropImageTag) {
else if (state.NowPlayingItem.BackdropImageTag) {
url = ApiClient.getImageUrl(state.backdropItemId, {
url = ApiClient.getImageUrl(state.NowPlayingItem.BackdropItemId, {
type: "Backdrop",
height: 80,
tag: state.backdropImageTag,
tag: state.NowPlayingItem.BackdropImageTag,
index: 0
});
} else if (state.thumbImageTag) {
} else if (state.NowPlayingItem.ThumbImageTag) {
url = ApiClient.getImageUrl(state.thumbImageItemId, {
url = ApiClient.getImageUrl(state.NowPlayingItem.ThumbImageItemId, {
type: "Thumb",
height: 80,
tag: state.thumbImageTag
tag: state.NowPlayingItem.ThumbImageTag
});
}