mirror of
https://git.um-react.app/um/cli.git
synced 2025-11-28 03:33:02 +00:00
Decoder.GetAudioExt() return extension with .
This commit is contained in:
@@ -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