Browse Source

Add tips for qmcogg

20230320
MengYX 5 years ago
parent
commit
d91f48aa70
No known key found for this signature in database GPG Key ID: E63F9C7303E8F604
  1. 2
      README.md
  2. 2
      src/App.vue
  3. 7
      src/plugins/qmc.js

2
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 在线播放

2
src/App.vue

@ -69,7 +69,7 @@
<el-footer id="app-footer">
<el-row>
音乐解锁移除已购音乐的加密保护
目前支持网易云音乐(ncm)和QQ音乐(qmc0, qmc3, qmcflac)
目前支持网易云音乐(ncm)和QQ音乐(qmc0, qmc3, qmcflac, qmcogg)
<a href="https://github.com/ix64/unlock-music/wiki/使用提示" target="_blank">使用提示</a>
</el-row>
<el-row>

7
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;

Loading…
Cancel
Save