Skip to content

Commit

Permalink
feat: Adding mkv filetype for video
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed May 16, 2022
1 parent 154d9c8 commit 9e6f5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ var (
// PdfExtensions contains extensions of Pdf
PdfExtensions = map[string]bool{".pdf": true}
// VideoExtensions contains extensions of Video
VideoExtensions = map[string]string{".mp4": "video/mp4", ".mov": "video/mp4", ".avi": "video/x-msvideo", ".ogg": "video/ogg"}
VideoExtensions = map[string]string{".mp4": "video/mp4", ".mov": "video/mp4", ".avi": "video/x-msvideo", ".ogg": "video/ogg", ".mkv": "video/x-matroska"}
// StreamExtensions contains extensions of streamable content
StreamExtensions = map[string]bool{".ts": true}
// WordExtensions contains extensions of Word
WordExtensions = map[string]bool{".doc": true, ".docx": true, ".docm": true}

// ThumbnailExtensions contains extensions of file eligible to thumbnail
ThumbnailExtensions = map[string]bool{".jpg": true, ".jpeg": true, ".png": true, ".gif": true, ".tiff": true, ".pdf": true, ".mp4": true, ".mov": true, ".avi": true, ".webp": true}
ThumbnailExtensions = map[string]bool{".jpg": true, ".jpeg": true, ".png": true, ".gif": true, ".tiff": true, ".webp": true, ".pdf": true, ".mp4": true, ".mov": true, ".avi": true, ".ogg": true, ".mkv": true}
)

// MetadataDirectory computes metadata directory for given item
Expand Down

0 comments on commit 9e6f5ee

Please sign in to comment.