codecત્યpl

This commit is contained in:
Reid 2025-04-28 20:49:03 -07:00
parent b8da59086b
commit f233d9e64f
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
10 changed files with 343 additions and 1121 deletions

13
src/constants/codecs.ts Normal file
View file

@ -0,0 +1,13 @@
import { RegularCodec } from "../downloader/index.js";
export const songCodecRegex: { [key in RegularCodec]: RegExp } = {
[RegularCodec.Aac]: /audio-stereo-\d+/,
[RegularCodec.AacHe]: /audio-HE-stereo-\d+/,
[RegularCodec.AacBinaural]: /audio-stereo-\d+-binaural/,
[RegularCodec.AacDownmix]: /audio-stereo-\d+-downmix/,
[RegularCodec.AacHeBinaural]: /audio-HE-stereo-\d+-binaural/,
[RegularCodec.AacHeDownmix]: /audio-HE-stereo-\d+-downmix/,
[RegularCodec.Atmos]: /audio-atmos-.*/,
[RegularCodec.Ac3]: /audio-ac3-.*/,
[RegularCodec.Alac]: /audio-alac-.*/
};