forked from jshiffer/matterbridge
Do not modify .webm files (telegram). Fixes #17** (#1802)
This commit is contained in:
parent
d7cad3b404
commit
7bc93c5506
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user