dfdfsdd
This commit is contained in:
@@ -36,6 +36,7 @@ mime_maps = {
|
||||
"mp3": { "ext": ".mp3", "mimes": ["audio/mpeg", "audio/mp3"] },
|
||||
"m4a": { "ext": ".m4a", "mimes": ["audio/mp4", "audio/x-m4a"] },
|
||||
"ogg": { "ext": ".ogg", "mimes": ["audio/ogg"] },
|
||||
"opus": { "ext": ".opus", "mimes": ["audio/opus"] },
|
||||
"flac": { "ext": ".flac", "mimes": ["audio/flac"] },
|
||||
"wav": { "ext": ".wav", "mimes": ["audio/wav", "audio/x-wav", "audio/vnd.wave"] },
|
||||
"wma": { "ext": ".wma", "mimes": ["audio/x-ms-wma"] },
|
||||
@@ -98,3 +99,13 @@ def get_type_from_ext(ext: str) -> str:
|
||||
return type_name
|
||||
|
||||
return 'other'
|
||||
|
||||
|
||||
# Canonical supported extension set for all stores/cmdlets.
|
||||
# Derived from mime_maps so there is a single source of truth.
|
||||
ALL_SUPPORTED_EXTENSIONS: set[str] = {
|
||||
spec["ext"].lower()
|
||||
for group in mime_maps.values()
|
||||
for spec in group.values()
|
||||
if isinstance(spec, dict) and isinstance(spec.get("ext"), str) and spec.get("ext")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user