Add .qmcogg (without test)

Add Tips
This commit is contained in:
MengYX 2019-11-10 00:59:13 +08:00
parent 757d4d4847
commit c9770bdd59
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
3 changed files with 12 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<script>let _paq = window._paq || []; <script>var _paq = window._paq || [];
_paq.push(['trackPageView'], ['enableLinkTracking'], ['setSiteId', '2'], _paq.push(['trackPageView'], ['enableLinkTracking'], ['setSiteId', '2'],
['setTrackerUrl', 'https://stats.ixarea.com/ixarea-stats/report']); ['setTrackerUrl', 'https://stats.ixarea.com/ixarea-stats/report']);
</script> </script>
@ -58,11 +58,13 @@
<div id="loader"></div> <div id="loader"></div>
<noscript> <noscript>
<img alt="" <img alt=""
src="https://stats.ixarea.com/matomo.php?idsite=2&rec=1&action_name=音乐解锁+-+By+IXarea" style="border:0"/> src="https://stats.ixarea.com/ixarea-stats/report?idsite=2&rec=1&action_name=音乐解锁+-+By+IXarea"
style="border:0"/>
</noscript> </noscript>
<strong>很抱歉,音乐解锁需要使用支持某些新特性的现代浏览器!如 <strong>音乐解锁采用了一些新特性!建议使用
<a href="https://www.google.cn/chrome/">Google Chrome</a> <a href="https://www.google.cn/chrome/">Google Chrome</a>
<a href="https://www.firefox.com.cn/">Mozilla Firefox</a> <a href="https://www.firefox.com.cn/">Mozilla Firefox</a>
| <a href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>
</strong> </strong>
</div> </div>
<div id="app"></div> <div id="app"></div>

View File

@ -6,7 +6,7 @@
:auto-upload="false" :auto-upload="false"
:on-change="handleFile" :on-change="handleFile"
:show-file-list="false" :show-file-list="false"
accept=".ncm,.qmc0,.qmc3,.qmcflac" accept=".ncm,.qmc0,.qmc3,.qmcflac,.qmcogg"
action="" action=""
drag drag
multiple> multiple>
@ -111,7 +111,8 @@
document.getElementById("loader-mask").remove(); document.getElementById("loader-mask").remove();
this.$notify.info({ this.$notify.info({
title: '离线使用', title: '离线使用',
message: "音乐解锁加载成功。我们使用PWA技术可以添加到桌面或收藏夹无网络状况下也能使用。", message: '我们使用PWA技术添加到桌面或收藏夹无网络也能使用。点击查看<a href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
dangerouslyUseHTMLString: true,
duration: 30000, duration: 30000,
position: 'top-left' position: 'top-left'
}); });
@ -131,6 +132,7 @@
case "qmc3": case "qmc3":
case "qmc0": case "qmc0":
case "qmcflac": case "qmcflac":
case "qmcogg":
data = await QmcDecrypt.Decrypt(file.raw); data = await QmcDecrypt.Decrypt(file.raw);
break; break;
default: default:
@ -154,7 +156,8 @@
} else { } else {
this.$notify.error({ this.$notify.error({
title: '错误', title: '错误',
message: '解析此文件时出现问题' message: '解析此文件时出现问题,请查看<a href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
dangerouslyUseHTMLString: true
}); });
window._paq.push(["trackEvent", "Unlock", "Error", file.name]); window._paq.push(["trackEvent", "Unlock", "Error", file.name]);
} }

View File

@ -21,6 +21,7 @@ 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 "qmcflac": case "qmcflac":