Fixed avatar data type in Vixen scraper.
This commit is contained in:
parent
c17e44e9f9
commit
25f3dcf9a5
|
@ -23,7 +23,13 @@ function getAvatarFallbacks(avatar) {
|
|||
.sort((imageA, imageB) => imageB.height - imageA.height)
|
||||
.map((image) => [image.highdpi?.['3x'], image.highdpi?.triple, image.highdpi?.['2x'], image.highdpi?.double, image.src])
|
||||
.flat()
|
||||
.filter(Boolean);
|
||||
.filter(Boolean)
|
||||
.map((source) => ({
|
||||
src: source,
|
||||
expectType: {
|
||||
'binary/octet-stream': 'image/jpeg',
|
||||
},
|
||||
}));
|
||||
}
|
||||
|
||||
function curateSources(sources, type = 'image/jpeg') {
|
||||
|
|
Loading…
Reference in New Issue