kill the codec enums
This commit is contained in:
parent
7a3d74dc87
commit
8113c36a47
6 changed files with 71 additions and 49 deletions
|
|
@ -1,13 +1,14 @@
|
|||
import { RegularCodec } from "../downloader/index.js";
|
||||
import type { RegularCodecType } from "downloader/codecType.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-.*/
|
||||
|
||||
export const songCodecRegex: { [key in RegularCodecType]: RegExp } = {
|
||||
"aac": /audio-stereo-\d+/,
|
||||
"aac_he": /audio-HE-stereo-\d+/,
|
||||
"aac_binaural": /audio-stereo-\d+-binaural/,
|
||||
"aac_downmix": /audio-stereo-\d+-downmix/,
|
||||
"aac_he_binaural": /audio-HE-stereo-\d+-binaural/,
|
||||
"aac_he_downmix": /audio-HE-stereo-\d+-downmix/,
|
||||
"atmos": /audio-atmos-.*/,
|
||||
"ac3": /audio-ac3-.*/,
|
||||
"alac": /audio-alac-.*/
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue