More album information
This commit is contained in:
parent
f30b0e894e
commit
d9b4da9dd1
@ -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!");
|
||||||
})()
|
})()
|
||||||
|
Loading…
Reference in New Issue
Block a user