diff options
author | montellese <montellese@xbmc.org> | 2012-06-05 00:39:06 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2012-06-05 00:39:06 +0200 |
commit | 9cc668f69a39ab44083432fa5e12f62d866ca25f (patch) | |
tree | 4186fcbae80be5ba1723ede9adb29db20e70db2a /addons | |
parent | 134b14ade4c3d21fdcffd449d27e6b10557b83e3 (diff) |
webinterface.default: fix thumbnail of "Now Playing" item
Diffstat (limited to 'addons')
-rwxr-xr-x | addons/webinterface.default/js/NowPlayingManager.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/webinterface.default/js/NowPlayingManager.js b/addons/webinterface.default/js/NowPlayingManager.js index 59192cbd20..049c5a981b 100755 --- a/addons/webinterface.default/js/NowPlayingManager.js +++ b/addons/webinterface.default/js/NowPlayingManager.js @@ -382,7 +382,7 @@ NowPlayingManager.prototype = { this.lastPlaylistItem = this.activePlaylistItem; var imgPath = DEFAULT_ALBUM_COVER; if (this.activePlaylistItem.thumbnail) { - imgPath = this.activePlaylistItem.thumbnail.startsWith('special://') ? ('/image/' + encodeURI(this.activePlaylistItem.thumbnail)) : ('images/' + this.activePlaylistItem.thumbnail); + imgPath = '/image/' + encodeURI(this.activePlaylistItem.thumbnail); } $('#audioCoverArt').html('<img src="' + imgPath + '" alt="' + this.activePlaylistItem.album + ' cover art">'); $('#audioTrackTitle').html('<span title="' + this.activePlaylistItem.title + '">' + this.activePlaylistItem.title + '</span>'); @@ -430,7 +430,7 @@ NowPlayingManager.prototype = { this.lastPlaylistItem = this.activePlaylistItem; var imgPath = DEFAULT_VIDEO_COVER; if (this.activePlaylistItem.thumbnail) { - imgPath = this.activePlaylistItem.thumbnail.startsWith('special://') ? ('/image/' + encodeURI(this.activePlaylistItem.thumbnail)) : ('images/' + this.activePlaylistItem.thumbnail); + imgPath = '/image/' + encodeURI(this.activePlaylistItem.thumbnail); } $('#videoCoverArt').html('<img src="' + imgPath + '" alt="' + this.activePlaylistItem.title + ' cover art">'); $('#videoShowTitle').html(this.activePlaylistItem.showtitle||' '); |