-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgetDiscography.mjs
More file actions
26 lines (21 loc) · 688 Bytes
/
getDiscography.mjs
File metadata and controls
26 lines (21 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import bcfetch from '../../dist/mjs/index.js';
const artistUrl = 'https://musique.coeurdepirate.com';
const labelUrl = 'https://randsrecords.bandcamp.com';
const artistDiscogParams = {
bandUrl: artistUrl,
imageFormat: 'art_app_large'
};
const labelDiscogParams = {
bandUrl: labelUrl,
imageFormat: 'art_app_large'
};
bcfetch.band.getDiscography(artistDiscogParams).then((results) => {
console.log(`Artist URL: ${artistUrl}`);
console.log(JSON.stringify(results, null, 2));
console.log();
});
bcfetch.band.getDiscography(labelDiscogParams).then((results) => {
console.log(`Label URL: ${labelUrl}`);
console.log(JSON.stringify(results, null, 2));
console.log();
});