92e6c4fe1e
Extends DownloadSettings with 4 additional options: - Name: File name pattern for downloaded files (existed) - Disabled: Disables downloads - Originals: Only download files stored in "originals" folder - MediaRaw: Include RAW image files - MediaSidecar: Include metadata sidecar files (JSON, XMP, YAML)
21 lines
658 B
Go
21 lines
658 B
Go
package config
|
|
|
|
// ExifBruteForce checks if a brute-force search should be performed when no Exif headers were found.
|
|
func (c *Config) ExifBruteForce() bool {
|
|
return c.options.ExifBruteForce || !c.ExifToolJson()
|
|
}
|
|
|
|
// ExifToolBin returns the exiftool executable file name.
|
|
func (c *Config) ExifToolBin() string {
|
|
return findExecutable(c.options.ExifToolBin, "exiftool")
|
|
}
|
|
|
|
// ExifToolJson checks if creating JSON metadata sidecar files with Exiftool is enabled.
|
|
func (c *Config) ExifToolJson() bool {
|
|
return !c.DisableExifTool()
|
|
}
|
|
|
|
// BackupYaml checks if creating YAML files is enabled.
|
|
func (c *Config) BackupYaml() bool {
|
|
return !c.DisableBackups()
|
|
}
|