Bug Fixes:

- Fixed Navbar links (closes #8)
- Fixed Lyrics not updating
This commit is contained in:
Shiny Nematoda 2022-08-14 06:17:40 +00:00
parent 4ac524dcf2
commit e0bc3c61a2
No known key found for this signature in database
GPG key ID: 6506D50F5613A42D
6 changed files with 93 additions and 46 deletions

View file

@ -30,11 +30,15 @@ const playAlbum = () => {
},
saveAlbum = () => {
const urls = results.items?.songs?.items?.map(item => {
return { url: item.url, title: item.title };
}),
title = results.items?.songs?.title;
return { url: item.url, title: item.title };
});
let title = results.items?.songs?.title;
if (title) {
if (title == 'Songs')
title += ' - ' + results.items.songs.items[0].uploaderName;
useCreatePlaylist(title, urls, () => {
alert('Saved!');
});