Browse Source

More filetype fixes

get-got 4 years ago
parent
commit
87fa379d84
1 changed files with 3 additions and 1 deletions
  1. 3 1
      downloads.go

+ 3 - 1
downloads.go

@@ -506,7 +506,9 @@ func tryDownload(inputURL string, filename string, path string, message *discord
 		}
 
 		// Fix content type
-		if stringInSlice(extension, []string{".mov"}) {
+		if stringInSlice(extension, []string{".mov"}) ||
+			stringInSlice(extension, []string{".mp4"}) ||
+			stringInSlice(extension, []string{".webm"}) {
 			contentTypeFound = "video"
 		} else if stringInSlice(extension, []string{".psd"}) ||
 			stringInSlice(extension, []string{".nef"}) ||