Update enums.py

This commit is contained in:
Rafael Moraes
2026-03-26 14:28:22 -03:00
parent 75ba2e27bf
commit c99fc412d2
+5
View File
@@ -10,6 +10,7 @@ from .constants import (
MP4_AUDIO_QUALITIES,
PREMIUM_AUDIO_QUALITIES,
VORBIS_AUDIO_QUALITIES,
FLAC_AUDIO_QUALITIES,
)
@@ -67,6 +68,10 @@ class AudioQuality(Enum):
def ogg(self) -> bool:
return self.value in VORBIS_AUDIO_QUALITIES
@property
def flac(self) -> bool:
return self.value in FLAC_AUDIO_QUALITIES
@property
def file_format(self) -> str | None:
if self.value in MP4_AUDIO_QUALITIES: