diff options
Diffstat (limited to 'web/poc_jsonrpc/artists.html')
-rw-r--r-- | web/poc_jsonrpc/artists.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/poc_jsonrpc/artists.html b/web/poc_jsonrpc/artists.html index bc962ae61c..d7b545d531 100644 --- a/web/poc_jsonrpc/artists.html +++ b/web/poc_jsonrpc/artists.html @@ -24,10 +24,8 @@ function writeArtist(artist) { for (var property in array) { var item = array[property]; document.write('<a href="nowplaying.html" onclick=CallPlay(' + item["albumid"] + ')>'); - if (item["thumbnail"]) - document.write('<img src="thumb/' + item["thumbnail"] + '.jpg" class="cover" alt="' + item["label"] + '"></img>'); - else - document.write('<img src="images/DefaultAlbumCover.png" class="cover" alt="' + item["label"] + '"></img>'); + var imgSrc = item["thumbnail"] ? ('vfs/' + escape(item["thumbnail"])) : "images/DefaultAlbumCover.png"; + document.write('<img src="' + imgSrc + '" class="cover" alt="' + item["label"] + '"></img>'); document.write('</a>'); } } |