Browse Source

Merge branch 'master' into pull/1

20230320
MengYX 5 years ago
committed by GitHub
parent
commit
0e59843944
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/plugins/qmc.js

8
src/plugins/qmc.js

@ -66,9 +66,11 @@ async function Decrypt(file) {
const filename = artist + " - " + title + "." + new_ext;
// 处理无封面
let pic_url = "";
if (tag.common.picture !== undefined && tag.common.picture.length > 0) {
let pic = new Blob([tag.common.picture[0].data], {type: tag.common.picture[0].format});
pic_url = URL.createObjectURL(pic);
if (tag.common.picture !== undefined && tag.common.picture.length >= 1) {
const picture = tag.common.picture[0];
const blobPic = new Blob([picture.data], {type: picture.format});
pic_url = URL.createObjectURL(blobPic);
}
// 返回
return {

Loading…
Cancel
Save