Use Small Cover Image for .ncm

This commit is contained in:
MengYX 2020-09-01 23:17:17 +08:00
parent 9af2ba5e62
commit 6ef0850c40
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604

View File

@ -164,7 +164,9 @@ function getMetaData(dataView, fileBuffer, offset) {
if (plainText.slice(0, labelIndex) === "dj") {
result = result.mainMusic;
}
if (!!result.albumPic) result.albumPic = result.albumPic.replace("http://", "https://");
if (!!result.albumPic && result.albumPic !== "")
result.albumPic = result.albumPic.replace("http://", "https://") + "?param=500y500";
return {data: result, offset: offset};
}