Browse Source

Merge pull request #97 from qq1010903229/patch-1

Merge pull request #97 增加对QQ音乐微云网盘格式的支持
20230320
MengYX 4 years ago
committed by GitHub
parent
commit
be09790810
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/decrypt/common.js
  2. 7
      src/decrypt/qmc.js

5
src/decrypt/common.js

@ -41,6 +41,11 @@ export async function CommonDecrypt(file) {
case "bkcflac"://Moo Music Flac case "bkcflac"://Moo Music Flac
case "mflac"://QQ Music Desktop Flac case "mflac"://QQ Music Desktop Flac
case "mgg": //QQ Music Desktop Ogg case "mgg": //QQ Music Desktop Ogg
case "666c6163"://QQ Music Weiyun Flac
case "6d7033"://QQ Music Weiyun Mp3
case "6f6767"://QQ Music Weiyun Ogg
case "6d3461"://QQ Music Weiyun M4a
case "776176"://QQ Music Weiyun Wav
rt_data = await QmcDecrypt.Decrypt(file.raw, raw_filename, raw_ext); rt_data = await QmcDecrypt.Decrypt(file.raw, raw_filename, raw_ext);
break; break;
case "tm2":// QQ Music IOS M4a case "tm2":// QQ Music IOS M4a

7
src/decrypt/qmc.js

@ -29,7 +29,12 @@ const HandlerMap = {
"qmcflac": {handler: QmcMaskGetDefault, ext: "flac", detect: false}, "qmcflac": {handler: QmcMaskGetDefault, ext: "flac", detect: false},
"bkcmp3": {handler: QmcMaskGetDefault, ext: "mp3", detect: false}, "bkcmp3": {handler: QmcMaskGetDefault, ext: "mp3", detect: false},
"bkcflac": {handler: QmcMaskGetDefault, ext: "flac", detect: false}, "bkcflac": {handler: QmcMaskGetDefault, ext: "flac", detect: false},
"tkm": {handler: QmcMaskGetDefault, ext: "m4a", detect: false} "tkm": {handler: QmcMaskGetDefault, ext: "m4a", detect: false},
"666c6163": {handler: QmcMaskGetDefault, ext: "flac", detect: false},
"6d7033": {handler: QmcMaskGetDefault, ext: "mp3", detect: false},
"6f6767": {handler: QmcMaskGetDefault, ext: "ogg", detect: false},
"6d3461": {handler: QmcMaskGetDefault, ext: "m4a", detect: false},
"776176": {handler: QmcMaskGetDefault, ext: "wav", detect: false}
}; };
export async function Decrypt(file, raw_filename, raw_ext) { export async function Decrypt(file, raw_filename, raw_ext) {

Loading…
Cancel
Save