feat(qmc): use editorial distance to find the key

This commit is contained in:
Unlock Music Dev
2022-12-05 09:43:33 +08:00
parent 423767ba63
commit 3739638ddf
4 changed files with 57 additions and 19 deletions

View File

@@ -111,7 +111,7 @@ func (d *Decoder) searchKey() (err error) {
fileSize := int(fileSizeM4) + 4
//goland:noinspection GoBoolExpressions
if runtime.GOOS == "darwin" {
if runtime.GOOS == "darwin" && !strings.HasPrefix(d.params.Extension, ".qmc") {
d.decodedKey, err = readKeyFromMMKV(d.params.FilePath, d.logger)
if err == nil {
d.audioLen = fileSize