Add actual_file_format property to AudioQuality

This commit is contained in:
Rafael Moraes
2026-03-03 18:28:28 -03:00
parent efb64aef19
commit 932b64f124
+9 -1
View File
@@ -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