5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-19 16:59:34 +00:00

Do not modify .webm files (telegram). Fixes #17** (#1802)

This commit is contained in:
Wim 2022-04-17 13:35:11 +02:00 committed by GitHub
parent d7cad3b404
commit 7bc93c5506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,7 +385,7 @@ func (b *Btelegram) getDownloadInfo(id string, suffix string, urlpart bool) (str
urlPart := strings.Split(url, "/")
name = urlPart[len(urlPart)-1]
}
if suffix != "" && !strings.HasSuffix(name, suffix) {
if suffix != "" && !strings.HasSuffix(name, suffix) && !strings.HasSuffix(name, ".webm") {
name += suffix
}
text := " " + url