mirror of
https://git.um-react.app/um/cli.git
synced 2026-11-28 08:06:59 +00:00
Decoder.GetAudioExt() return extension with .
This commit is contained in:
7 files changed
+19
-7
No files matched your search
+3
-1
@@ -201,7 +201,9 @@ func (d *Decoder) Decode() error {
|
||||
|
||||
func (d Decoder) GetAudioExt() string {
|
||||
if d.meta != nil {
|
||||
return d.meta.GetFormat()
|
||||
if format := d.meta.GetFormat(); format != "" {
|
||||
return "." + d.meta.GetFormat()
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user