Fixed Teen Mega World posters.

This commit is contained in:
DebaucheryLibrarian
2026-02-08 21:14:51 +01:00
parent f2c2c7856b
commit 28ded0b4b9
4 changed files with 25 additions and 22 deletions

View File

@@ -25,6 +25,7 @@ function getAvatarFallbacks(avatar) {
src: source,
expectType: {
'binary/octet-stream': 'image/jpeg',
'application/octet-stream': 'image/jpeg',
},
}));
}
@@ -42,6 +43,7 @@ function curateSources(sources, type = 'image/jpeg') {
type: source.type || type,
expectType: {
'binary/octet-stream': type,
'application/octet-stream': type,
},
}))
.sort((resA, resB) => (resB.width * resB.height) - (resA.width * resA.height)) // number of pixels