load ytmusic stuffs from cache and add dev logging #7

Merged
oddbyte merged 7 commits from dev into main 2026-01-19 16:09:19 -05:00
2 changed files with 3 additions and 0 deletions
Showing only changes of commit 227cde48d9 - Show all commits

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ private/
package-lock.json package-lock.json
.env .env
ytmusic_cache ytmusic_cache
.vscode

View File

@@ -88,6 +88,8 @@ async function updateSongs() {
if (typeof playlistSongs == 'object') { if (typeof playlistSongs == 'object') {
// For each song that youtube moosic has yelled back at us, give them individually to populateThumbnails() // For each song that youtube moosic has yelled back at us, give them individually to populateThumbnails()
await Promise.all(playlistSongs.map(async song => await populateThumbnails(song))); await Promise.all(playlistSongs.map(async song => await populateThumbnails(song)));
// Write all of this to cache
fs.writeFileSync(path.join(baseDir + 'ytmusic_cache'), JSON.stringify({playlistSongs, thumbnails}));
} }
else { else {
// like legit this shouldnt even be possible // like legit this shouldnt even be possible