Hi there,
I noticed some cover art not loading but they do indeed have cover art as they load perfectly from windows 7 (local media player).
Is there some sort of refresh rate or timer on the system to time out if it falls between a certain time frame? If so, how do i increase this.
I changed the radio section from the generic image to use the same code above that works with the local tracks.
Thanks!
Regards,
Will.
UPDATE:
It seems that webradio is pulling the coverart images elsewhere as they dont seem to be pulling them from the embedded ID3 metatag.
Example: I had a picture of a dog on the track, a cat appeared where as if i play that track locally it works perfectly. Very weird.
Below is the code i changed:
if ("radio" !== GUI.stream) {
var l = Math.floor(5001 * Math.random());
$("#cover-art").css("background-image", 'url("/coverart/?v=' + l + '")'), $.ajax({
url: "/lyric/",
success: function(e) {
$("#cover-art").attr("title", e)
},
cache: !1
});
$("#playback").css("background-image", 'url("/coverart/?v=' + l + '")'), $.ajax({
url: "/lyric/",
success: function(e) {
$(".container-fluid").attr("title", e)
},
cache: !1
});
}
else
{
var l = Math.floor(5001 * Math.random());
$("#cover-art").css("background-image", 'url("/coverart/?v=' + l + '")'), $.ajax({
url: "/lyric/",
success: function(e) {
$("#cover-art").attr("title", e)
},
cache: !1
});
$("#playback").css("background-image", 'url("/coverart/?v=' + l + '")'), $.ajax({
url: "/lyric/",
success: function(e) {
$(".container-fluid").attr("title", e)
},
cache: !1
});
//$("#cover-art").css("background-image", 'url("assets/img/cover-radio.jpg")');
//$("#playback").css("background-image", '');
}
GUI.currentalbum = n