mirror of
https://github.com/glomatico/votify.git
synced 2026-10-26 16:52:26 +01:00
Add actual_file_format property to AudioQuality
This commit is contained in:
@@ -68,8 +68,16 @@ class AudioQuality(Enum):
|
||||
return "mp4"
|
||||
elif self.value in VORBIS_AUDIO_QUALITIES:
|
||||
return "ogg"
|
||||
elif self.value == "flac":
|
||||
return None
|
||||
|
||||
@property
|
||||
def actual_file_format(self) -> str | None:
|
||||
if self.value == "flac":
|
||||
return "flac"
|
||||
elif self.value in MP4_AUDIO_QUALITIES:
|
||||
return "m4a"
|
||||
elif self.value in VORBIS_AUDIO_QUALITIES:
|
||||
return "ogg"
|
||||
return None
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user