Repository navigation
PlayControl v1.2.6
Now using fb.GetFocusItem() in its own PlayControl helper function, instead of fb.GetNowPlaying() in a callback to utils.GetAlbumArtV2() to get the proper albumart, along with modification/addition of if() statements to select appropriate above function.
PlayControl_helpers.js:
function get_album_art(metadb) {
if (metadb)
return utils.GetAlbumArtV2(metadb, 0, false); // Get front cover
};
PlayControl.js:
// Album Cover
if (!fb.IsPlaying && ppt.showalbumart) {
albumart = get_album_art(fb.GetFocusItem());
} else if (fb.IsPlaying && ppt.showalbumart) {
albumart = get_album_art(fb.GetNowPlaying());
};