28 lines
714 B
TypeScript
28 lines
714 B
TypeScript
import bcfetch from '../../';
|
|
import util from 'util';
|
|
|
|
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(util.inspect(results, false, null, false));
|
|
console.log();
|
|
});
|
|
|
|
bcfetch.band.getDiscography(labelDiscogParams).then((results) => {
|
|
console.log(`Label URL: ${labelUrl}`);
|
|
console.log(util.inspect(results, false, null, false));
|
|
console.log();
|
|
});
|