feat: updates

This commit is contained in:
qier222 2023-02-05 03:36:33 +08:00
parent ccebe0a67a
commit 9a52681687
No known key found for this signature in database
37 changed files with 160 additions and 55332 deletions

View file

@ -21,8 +21,8 @@ export function resizeImage(url: string, size: 'xs' | 'sm' | 'md' | 'lg'): strin
lg: '1024',
}
// from Apple Music
if (url.includes('mzstatic.com')) {
// from Apple Music
return url.replace('{w}', sizeMap[size]).replace('{h}', sizeMap[size])
}