mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-24 11:42:03 -08:00
Rename .oga audio files to .ogg (telegram) (#1349)
This commit is contained in:
parent
9592cff9fa
commit
16fde6935c
@ -311,6 +311,11 @@ func (b *Btelegram) handleDownload(rmsg *config.Message, message *tgbotapi.Messa
|
||||
b.maybeConvertWebp(&name, data)
|
||||
}
|
||||
|
||||
// rename .oga to .ogg https://github.com/42wim/matterbridge/issues/906#issuecomment-741793512
|
||||
if strings.HasSuffix(name, ".oga") && message.Audio != nil {
|
||||
name = strings.Replace(name, ".oga", ".ogg", 1)
|
||||
}
|
||||
|
||||
helper.HandleDownloadData(b.Log, rmsg, name, message.Caption, "", data, b.General)
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user