Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMediaTimestamp = true // DefaultMediaTimestamp set to TRUE will use file last modification date as its timestamp when it can't be found within the file.
View Source
var SupportedExtensions = map[string]backupmodel.MediaType{ "jpg": backupmodel.MediaTypeImage, "jpeg": backupmodel.MediaTypeImage, "png": backupmodel.MediaTypeImage, "gif": backupmodel.MediaTypeImage, "webp": backupmodel.MediaTypeImage, "raw": backupmodel.MediaTypeImage, "svg": backupmodel.MediaTypeImage, "eps": backupmodel.MediaTypeImage, "mkv": backupmodel.MediaTypeVideo, "mts": backupmodel.MediaTypeVideo, "avi": backupmodel.MediaTypeVideo, "mp4": backupmodel.MediaTypeVideo, "mpeg": backupmodel.MediaTypeVideo, "mov": backupmodel.MediaTypeVideo, "wmv": backupmodel.MediaTypeVideo, "webm": backupmodel.MediaTypeVideo, }
Functions ¶
func AnalyseMedia ¶
func AnalyseMedia(found backupmodel.FoundMedia) (*backupmodel.AnalysedMedia, error)
func ExtractTypeAndDetails ¶
func ExtractTypeAndDetails(found backupmodel.FoundMedia) (backupmodel.MediaType, *backupmodel.MediaDetails, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.