Replace deprecated 'artist' filter in example

This commit is contained in:
patrickkfkan 2022-06-25 04:43:47 +08:00
parent 2a8116f316
commit 4922db74ad
2 changed files with 205 additions and 147 deletions

View File

@ -6,7 +6,7 @@ bcfetch.getImageFormats('album').then( results => {
console.log();
});
bcfetch.getImageFormats('artist').then( results => {
bcfetch.getImageFormats('bio').then( results => {
console.log('Artist image formats:');
console.log(results);
console.log();

View File

@ -1,172 +1,230 @@
Artist image formats:
[ { height: 1024,
width: 1024,
resize_algo: 'fit',
[
{
id: 20,
name: 'bio_screen',
file_format: 'JPEG',
id: 20 },
{ height: 180,
width: 120,
resize_algo: 'fit',
width: 1024,
height: 1024,
file_format: 'JPEG'
},
{
id: 21,
name: 'bio_thumb',
file_format: 'JPEG',
id: 21 },
{ height: 25,
width: 25,
resize_algo: 'thumb',
resize_algo: 'fit',
width: 120,
height: 180,
file_format: 'JPEG'
},
{
id: 22,
name: 'bio_navbar',
file_format: 'JPEG',
id: 22 },
{ height: 300,
width: 300,
resize_algo: 'fit',
resize_algo: 'thumb',
width: 25,
height: 25,
file_format: 'JPEG'
},
{
id: 23,
name: 'bio_phone',
file_format: 'JPEG',
id: 23 },
{ height: 300,
width: 300,
resize_algo: 'thumb',
name: 'bio_licensing',
file_format: 'JPEG',
id: 24 },
{ height: 700,
width: 700,
resize_algo: 'fit',
name: 'bio_app',
file_format: 'JPEG',
width: 300,
height: 300,
file_format: 'JPEG'
},
{
id: 24,
name: 'bio_licensing',
resize_algo: 'thumb',
width: 300,
height: 300,
file_format: 'JPEG'
},
{
id: 25,
quality: 70 },
{ height: 600,
width: 800,
resize_algo: 'thumb',
name: 'bio_app',
resize_algo: 'fit',
width: 700,
height: 700,
file_format: 'JPEG',
quality: 70
},
{
id: 26,
name: 'bio_subscribe',
file_format: 'JPEG',
id: 26 },
{ height: 402,
width: 715,
resize_algo: 'thumb',
width: 800,
height: 600,
file_format: 'JPEG'
},
{
id: 27,
name: 'bio_subscribe2',
file_format: 'JPEG',
id: 27 },
{ height: 432,
width: 768,
resize_algo: 'thumb',
width: 715,
height: 402,
file_format: 'JPEG'
},
{
id: 28,
name: 'bio_featured',
file_format: 'JPEG',
id: 28 },
{ height: 75,
width: 100,
resize_algo: 'thumb',
width: 768,
height: 432,
file_format: 'JPEG'
},
{
id: 29,
name: 'bio_autocomplete',
file_format: 'JPEG',
id: 29 } ]
resize_algo: 'thumb',
width: 100,
height: 75,
file_format: 'JPEG'
}
]
Album image formats:
[ { height: 350,
width: 350,
resize_algo: 'thumb',
[
{
id: 2,
name: 'art_thumb',
file_format: 'JPEG',
id: 2 },
{ height: 100,
width: 100,
resize_algo: 'thumb',
name: 'art_thumbthumb',
file_format: 'JPEG',
id: 3 },
{ height: 300,
width: 300,
resize_algo: 'thumb',
name: 'art_embedded_metadata',
file_format: 'JPEG',
id: 4 },
{ height: 700,
width: 700,
resize_algo: 'thumb',
name: 'art_embedded_metadata_large',
file_format: 'JPEG',
id: 5 },
{ height: 100,
width: 100,
resize_algo: 'thumb',
name: 'art_embedded_player',
file_format: 'JPEG',
id: 6 },
{ height: 150,
width: 150,
resize_algo: 'thumb',
name: 'art_embedded_player_large',
file_format: 'JPEG',
id: 7 },
{ height: 124,
width: 124,
resize_algo: 'thumb',
name: 'art_tags',
file_format: 'JPEG',
id: 8 },
{ height: 210,
width: 210,
resize_algo: 'thumb',
name: 'art_tags_large',
file_format: 'JPEG',
id: 9 },
{ height: 172,
width: 172,
resize_algo: 'thumb',
name: 'art_tag_search',
file_format: 'JPEG',
id: 11 },
{ height: 138,
width: 138,
resize_algo: 'thumb',
name: 'art_artist_index',
file_format: 'JPEG',
id: 12 },
{ height: 380,
width: 380,
resize_algo: 'thumb',
name: 'art_solo_feature',
file_format: 'JPEG',
id: 13 },
{ height: 368,
width: 368,
resize_algo: 'thumb',
name: 'art_feature',
file_format: 'JPEG',
id: 14 },
{ height: 135,
width: 135,
resize_algo: 'thumb',
name: 'art_feed_new_release',
file_format: 'JPEG',
id: 15 },
{ minsize: { format: 5, size: 30000 },
height: 700,
width: 700,
resize_algo: 'thumb',
name: 'art_app_large',
file_format: 'JPEG',
id: 16,
quality: 70 },
{ height: 350,
width: 350,
height: 350,
file_format: 'JPEG'
},
{
id: 3,
name: 'art_thumbthumb',
resize_algo: 'thumb',
anim_ok: true,
name: 'art_thumb_anim_ok',
file_format: 'JPEG',
id: 67 },
{ height: 210,
width: 210,
width: 100,
height: 100,
file_format: 'JPEG'
},
{
id: 4,
name: 'art_embedded_metadata',
resize_algo: 'thumb',
width: 300,
height: 300,
file_format: 'JPEG'
},
{
id: 5,
name: 'art_embedded_metadata_large',
resize_algo: 'thumb',
anim_ok: true,
name: 'art_tags_large_anim_ok',
file_format: 'JPEG',
id: 68 },
{ height: 700,
width: 700,
height: 700,
file_format: 'JPEG'
},
{
id: 6,
name: 'art_embedded_player',
resize_algo: 'thumb',
anim_ok: true,
name: 'art_embedded_metadata_large_anim_ok',
width: 100,
height: 100,
file_format: 'JPEG'
},
{
id: 7,
name: 'art_embedded_player_large',
resize_algo: 'thumb',
width: 150,
height: 150,
file_format: 'JPEG'
},
{
id: 8,
name: 'art_tags',
resize_algo: 'thumb',
width: 124,
height: 124,
file_format: 'JPEG'
},
{
id: 9,
name: 'art_tags_large',
resize_algo: 'thumb',
width: 210,
height: 210,
file_format: 'JPEG'
},
{
id: 11,
name: 'art_tag_search',
resize_algo: 'thumb',
width: 172,
height: 172,
file_format: 'JPEG'
},
{
id: 12,
name: 'art_artist_index',
resize_algo: 'thumb',
width: 138,
height: 138,
file_format: 'JPEG'
},
{
id: 13,
name: 'art_solo_feature',
resize_algo: 'thumb',
width: 380,
height: 380,
file_format: 'JPEG'
},
{
id: 14,
name: 'art_feature',
resize_algo: 'thumb',
width: 368,
height: 368,
file_format: 'JPEG'
},
{
id: 15,
name: 'art_feed_new_release',
resize_algo: 'thumb',
width: 135,
height: 135,
file_format: 'JPEG'
},
{
id: 16,
name: 'art_app_large',
resize_algo: 'thumb',
width: 700,
height: 700,
file_format: 'JPEG',
id: 69 } ]
quality: 70,
minsize: { size: 30000, format: 5 }
},
{
id: 67,
name: 'art_thumb_anim_ok',
resize_algo: 'thumb',
width: 350,
height: 350,
file_format: 'JPEG',
anim_ok: true
},
{
id: 68,
name: 'art_tags_large_anim_ok',
resize_algo: 'thumb',
width: 210,
height: 210,
file_format: 'JPEG',
anim_ok: true
},
{
id: 69,
name: 'art_embedded_metadata_large_anim_ok',
resize_algo: 'thumb',
width: 700,
height: 700,
file_format: 'JPEG',
anim_ok: true
}
]