More album information

This commit is contained in:
Daniel Kluge 2022-05-07 17:25:42 +02:00
parent f30b0e894e
commit d9b4da9dd1

View File

@ -44,9 +44,14 @@ const rl = readline.createInterface({
break; break;
} }
} }
const album = albums[Number.parseInt(albumIndex) - 1];
rl.close(); rl.close();
secrets.albumId = albums[albumIndex-1].id; console.log("Writeing album settings to secrets...");
console.log("Writeing album ID to secrets..."); secrets.album = {
name: album.title,
id: album.id,
count: album.mediaItemsCount
};
writeFileSync(secretsFile, JSON.stringify(secrets, null, 2)); writeFileSync(secretsFile, JSON.stringify(secrets, null, 2));
console.log("Done!"); console.log("Done!");
})() })()