diff options
Diffstat (limited to 'app/ui/player.php')
-rw-r--r-- | app/ui/player.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/ui/player.php b/app/ui/player.php index 47526f5..3fcdec1 100644 --- a/app/ui/player.php +++ b/app/ui/player.php @@ -168,7 +168,11 @@ window.parent.redoNavigation("home"); } - function openAlbum() { + async function openAlbum() { + if (Object.entries(window.parent.albums).filter(i => i[1].tracks.includes(window.parent.currentSongID))) { + await window.parent.redownloadMedia(); + } + window.parent.location.hash = "#/albums/" + Object.entries(window.parent.albums).filter(i => i[1].tracks.includes(window.parent.currentSongID))[0][0]; window.parent.redoNavigation("albums"); } |