Add tips for qmcogg

This commit is contained in:
MengYX 2019-11-10 18:41:35 +08:00
parent 497a63486d
commit d91f48aa70
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
3 changed files with 7 additions and 4 deletions

View File

@ -7,7 +7,7 @@
## Features ## Features
- [x] Unlock in browser 在浏览器中解锁 - [x] Unlock in browser 在浏览器中解锁
- [x] QQMusic File QQ音乐文件 (.qmc0/.qmc3/.qmcflac) - [x] QQMusic File QQ音乐文件 (.qmc0/.qmc3/.qmcflac/.qmcogg)
- [x] Netease File 网易云音乐文件 (.ncm) - [x] Netease File 网易云音乐文件 (.ncm)
- [x] Drag and Drop 拖放文件 - [x] Drag and Drop 拖放文件
- [x] Play instantly 在线播放 - [x] Play instantly 在线播放

View File

@ -69,7 +69,7 @@
<el-footer id="app-footer"> <el-footer id="app-footer">
<el-row> <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> <a href="https://github.com/ix64/unlock-music/wiki/使用提示" target="_blank">使用提示</a>
</el-row> </el-row>
<el-row> <el-row>

View File

@ -11,7 +11,8 @@ const SEED_MAP = [
[0x00, 0x09, 0x5b, 0x9f, 0x62, 0x66, 0xa1]]; [0x00, 0x09, 0x5b, 0x9f, 0x62, 0x66, 0xa1]];
const audio_mime_type = { const audio_mime_type = {
mp3: "audio/mpeg", mp3: "audio/mpeg",
flac: "audio/flac" flac: "audio/flac",
ogg: "audio/ogg"
}; };
async function Decrypt(file) { async function Decrypt(file) {
@ -21,9 +22,11 @@ async function Decrypt(file) {
switch (filename_ext) { switch (filename_ext) {
case "qmc0": case "qmc0":
case "qmc3": case "qmc3":
case "qmcogg":
new_ext = "mp3"; new_ext = "mp3";
break; break;
case "qmcogg":
new_ext = "ogg";
break;
case "qmcflac": case "qmcflac":
new_ext = "flac"; new_ext = "flac";
break; break;