mirror of
https://github.com/glomatico/votify.git
synced 2026-10-23 00:03:36 +02:00
Update enums.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user