Browse Source

Add Support For .qmc2

20230320
MengYX 5 years ago
parent
commit
87356a0514
No known key found for this signature in database GPG Key ID: E63F9C7303E8F604
  1. 2
      README.md
  2. 1
      src/decrypt/common.js
  3. 1
      src/decrypt/qmc.js

2
README.md

@ -8,7 +8,7 @@
# Features # Features
- [x] Unlock in browser 在浏览器中解锁 - [x] Unlock in browser 在浏览器中解锁
- [x] QQMusic Format QQ音乐格式 (.qmc0/.qmc3/.qmcflac/.qmcogg/.tkm) - [x] QQMusic Format QQ音乐格式 (.qmc0/.qmc2/.qmc3/.qmcflac/.qmcogg/.tkm)
- [x] MooMusic Format Moo音乐格式 ([.bkcmp3/.bkcflac](https://github.com/ix64/unlock-music/issues/11)) - [x] MooMusic Format Moo音乐格式 ([.bkcmp3/.bkcflac](https://github.com/ix64/unlock-music/issues/11))
- [x] QQMusic Tm Format QQ音乐Tm格式 (.tm0/.tm2/.tm3/.tm6) - [x] QQMusic Tm Format QQ音乐Tm格式 (.tm0/.tm2/.tm3/.tm6)
- [x] QQMusic New Format QQ音乐新格式 (Experimental 实验性支持) - [x] QQMusic New Format QQ音乐新格式 (Experimental 实验性支持)

1
src/decrypt/common.js

@ -22,6 +22,7 @@ export async function CommonDecrypt(file) {
rt_data = await RawDecrypt.Decrypt(file.raw, raw_filename, "mp3"); rt_data = await RawDecrypt.Decrypt(file.raw, raw_filename, "mp3");
break; break;
case "qmc3"://QQ Music Android Mp3 case "qmc3"://QQ Music Android Mp3
case "qmc2"://QQ Music Android Ogg
case "qmc0"://QQ Music Android Mp3 case "qmc0"://QQ Music Android Mp3
case "qmcflac"://QQ Music Android Flac case "qmcflac"://QQ Music Android Flac
case "qmcogg"://QQ Music Android Ogg case "qmcogg"://QQ Music Android Ogg

1
src/decrypt/qmc.js

@ -7,6 +7,7 @@ const HandlerMap = {
"mgg": {handler: QmcMaskDetectMgg, ext: "ogg", detect: true}, "mgg": {handler: QmcMaskDetectMgg, ext: "ogg", detect: true},
"mflac": {handler: QmcMaskDetectMflac, ext: "flac", detect: true}, "mflac": {handler: QmcMaskDetectMflac, ext: "flac", detect: true},
"qmc0": {handler: QmcMaskGetDefault, ext: "mp3", detect: false}, "qmc0": {handler: QmcMaskGetDefault, ext: "mp3", detect: false},
"qmc2": {handler: QmcMaskGetDefault, ext: "ogg", detect: false},
"qmc3": {handler: QmcMaskGetDefault, ext: "mp3", detect: false}, "qmc3": {handler: QmcMaskGetDefault, ext: "mp3", detect: false},
"qmcogg": {handler: QmcMaskGetDefault, ext: "ogg", detect: false}, "qmcogg": {handler: QmcMaskGetDefault, ext: "ogg", detect: false},
"qmcflac": {handler: QmcMaskGetDefault, ext: "flac", detect: false}, "qmcflac": {handler: QmcMaskGetDefault, ext: "flac", detect: false},

Loading…
Cancel
Save