Merge pull request 'feat: added support for mmp4 extension' (#20) from jixunmoe/um-web:feat/qmc-new-ext-mmp4 into master

Reviewed-on: https://git.unlock-music.dev/um/web/pulls/20
This commit is contained in:
鲁树人 2022-11-27 14:34:07 +00:00
commit 4d1295a0e6
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ export async function Decrypt(file: FileInfo, config: Record<string, any>): Prom
case 'mgg': //QQ Music New Ogg
case 'mgg1': //QQ Music New Ogg
case 'mgg0':
case 'mmp4': // QMC MP4 Container w/ E-AC-3 JOC
case '666c6163': //QQ Music Weiyun Flac
case '6d7033': //QQ Music Weiyun Mp3
case '6f6767': //QQ Music Weiyun Ogg

View File

@ -18,6 +18,7 @@ export const HandlerMap: { [key: string]: Handler } = {
mgg1: { ext: 'ogg', version: 2 },
mflac: { ext: 'flac', version: 2 },
mflac0: { ext: 'flac', version: 2 },
mmp4: { ext: 'mmp4', version: 2 },
// qmcflac / qmcogg:
// 有可能是 v2 加密但混用同一个后缀名。