From 87356a0514f9a1c644ae8420243ce192ea6e47d3 Mon Sep 17 00:00:00 2001 From: MengYX Date: Sun, 5 Apr 2020 01:01:59 +0800 Subject: [PATCH] Add Support For .qmc2 --- README.md | 2 +- src/decrypt/common.js | 1 + src/decrypt/qmc.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0787144..a939d12 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ # Features - [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] QQMusic Tm Format QQ音乐Tm格式 (.tm0/.tm2/.tm3/.tm6) - [x] QQMusic New Format QQ音乐新格式 (Experimental 实验性支持) diff --git a/src/decrypt/common.js b/src/decrypt/common.js index 04d7037..31cbf7f 100644 --- a/src/decrypt/common.js +++ b/src/decrypt/common.js @@ -22,6 +22,7 @@ export async function CommonDecrypt(file) { rt_data = await RawDecrypt.Decrypt(file.raw, raw_filename, "mp3"); break; case "qmc3"://QQ Music Android Mp3 + case "qmc2"://QQ Music Android Ogg case "qmc0"://QQ Music Android Mp3 case "qmcflac"://QQ Music Android Flac case "qmcogg"://QQ Music Android Ogg diff --git a/src/decrypt/qmc.js b/src/decrypt/qmc.js index c6d0524..31a021c 100644 --- a/src/decrypt/qmc.js +++ b/src/decrypt/qmc.js @@ -7,6 +7,7 @@ const HandlerMap = { "mgg": {handler: QmcMaskDetectMgg, ext: "ogg", detect: true}, "mflac": {handler: QmcMaskDetectMflac, ext: "flac", detect: true}, "qmc0": {handler: QmcMaskGetDefault, ext: "mp3", detect: false}, + "qmc2": {handler: QmcMaskGetDefault, ext: "ogg", detect: false}, "qmc3": {handler: QmcMaskGetDefault, ext: "mp3", detect: false}, "qmcogg": {handler: QmcMaskGetDefault, ext: "ogg", detect: false}, "qmcflac": {handler: QmcMaskGetDefault, ext: "flac", detect: false},