Skip to content

PlayControl v1.2.6

Choose a tag to compare

@whistlechips whistlechips released this 09 Jun 10:24
· 18 commits to main since this release
5c9e79c

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());
  };