From d91f48aa700e6ac0793d150be13c37e41d2a7eb8 Mon Sep 17 00:00:00 2001 From: MengYX Date: Sun, 10 Nov 2019 18:41:35 +0800 Subject: [PATCH] Add tips for qmcogg --- README.md | 2 +- src/App.vue | 2 +- src/plugins/qmc.js | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 25b7613..f62b79a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ## Features - [x] Unlock in browser 在浏览器中解锁 -- [x] QQMusic File QQ音乐文件 (.qmc0/.qmc3/.qmcflac) +- [x] QQMusic File QQ音乐文件 (.qmc0/.qmc3/.qmcflac/.qmcogg) - [x] Netease File 网易云音乐文件 (.ncm) - [x] Drag and Drop 拖放文件 - [x] Play instantly 在线播放 diff --git a/src/App.vue b/src/App.vue index 1c5e72e..5026be4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -69,7 +69,7 @@ 音乐解锁:移除已购音乐的加密保护。 - 目前支持网易云音乐(ncm)和QQ音乐(qmc0, qmc3, qmcflac)。 + 目前支持网易云音乐(ncm)和QQ音乐(qmc0, qmc3, qmcflac, qmcogg)。 使用提示 diff --git a/src/plugins/qmc.js b/src/plugins/qmc.js index be8c54a..f6a530d 100644 --- a/src/plugins/qmc.js +++ b/src/plugins/qmc.js @@ -11,7 +11,8 @@ const SEED_MAP = [ [0x00, 0x09, 0x5b, 0x9f, 0x62, 0x66, 0xa1]]; const audio_mime_type = { mp3: "audio/mpeg", - flac: "audio/flac" + flac: "audio/flac", + ogg: "audio/ogg" }; async function Decrypt(file) { @@ -21,9 +22,11 @@ async function Decrypt(file) { switch (filename_ext) { case "qmc0": case "qmc3": - case "qmcogg": new_ext = "mp3"; break; + case "qmcogg": + new_ext = "ogg"; + break; case "qmcflac": new_ext = "flac"; break;