Browse Source

fix(QMCv2): `.mggl` `.mgg0`

(cherry picked from commit f7b5e25277678ae0f78a186aaf2fa76fee86173f)
20230320
MengYX 3 years ago
parent
commit
1f7ac44829
No known key found for this signature in database GPG Key ID: E63F9C7303E8F604
  1. 1
      src/decrypt/index.ts
  2. 2
      src/decrypt/qmc.ts

1
src/decrypt/index.ts

@ -65,6 +65,7 @@ export async function Decrypt(file: FileInfo, config: Record<string, any>): Prom
case 'mflac0': //QQ Music New Flac
case 'mgg': //QQ Music New Ogg
case 'mgg1': //QQ Music New Ogg
case 'mgg0':
case '666c6163': //QQ Music Weiyun Flac
case '6d7033': //QQ Music Weiyun Mp3
case '6f6767': //QQ Music Weiyun Ogg

2
src/decrypt/qmc.ts

@ -13,6 +13,8 @@ interface Handler {
export const HandlerMap: { [key: string]: Handler } = {
mgg: { ext: 'ogg', version: 2 },
mgg0: { ext: 'ogg', version: 2 },
mggl: { ext: 'ogg', version: 2 },
mgg1: { ext: 'ogg', version: 2 },
mflac: { ext: 'flac', version: 2 },
mflac0: { ext: 'flac', version: 2 },

Loading…
Cancel
Save