diff options
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-x | src/upd8.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/upd8.js b/src/upd8.js index de79a0fb..d2f1b08d 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -2780,10 +2780,12 @@ async function main() { console.log(WD.trackData[0].name, WD.trackData[0].album.name); console.log(WD.albumData[0].name, WD.albumData[0].tracks[0].name); console.log(WD.trackData[0].artistContribs[0].who.name); - console.log( - (WD.albumData - .find(album => album.name === 'Alternia') - .artistContribs[0].who.name)); + const demoAlbum1 = WD.albumData.find(album => album.name === 'Alternia'); + const demoAlbum2 = WD.albumData.find(album => album.name === 'Homestuck Vol. 5'); + console.log(demoAlbum1.artistContribs[0]?.who.name); + console.log(demoAlbum2.tracks[0].name, + demoAlbum2.tracks[0].date, + demoAlbum2.tracks[0].coverArtDate); return; |