From 75ba2e27bfc9c8d4ace19b30d688e1238d3419fb Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:28:20 -0300 Subject: [PATCH] Add FLAC/MP4 format variants and update maps --- votify/interface/constants.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/votify/interface/constants.py b/votify/interface/constants.py index 9f84eaa..33794ab 100644 --- a/votify/interface/constants.py +++ b/votify/interface/constants.py @@ -42,20 +42,26 @@ DEFAULT_EPISODE_DECRYPTION_KEY = ( ) FORMAT_ID_MAP = { - "aac-high": "11", + "vorbis-low": "0", + "vorbis-medium": "1", + "vorbis-high": "2", "aac-medium": "10", - "flac": "17", + "aac-high": "11", + "flac-flac": "16", + "flac-mp4": "17", } FORMAT_NAME_MAP = { - "aac-high": "MP4_256", - "aac-medium": "MP4_128", "vorbis-low": "OGG_VORBIS_96", "vorbis-medium": "OGG_VORBIS_160", "vorbis-high": "OGG_VORBIS_320", - "flac": "FLAC", + "aac-medium": "MP4_128", + "aac-high": "MP4_256", + "flac-flac": "FLAC_FLAC", + "flac-mp4": "MP4_FLAC", } -MP4_AUDIO_QUALITIES = {"aac-high", "aac-medium", "flac"} +MP4_AUDIO_QUALITIES = {"aac-high", "aac-medium", "flac-mp4"} VORBIS_AUDIO_QUALITIES = {"vorbis-high", "vorbis-medium", "vorbis-low"} -PREMIUM_AUDIO_QUALITIES = {"aac-high", "vorbis-high", "flac"} +FLAC_AUDIO_QUALITIES = {"flac-flac"} +PREMIUM_AUDIO_QUALITIES = {"aac-high", "vorbis-high", "flac-flac", "flac-mp4"}