2022-03-28 15:57:29 +02:00
|
|
|
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 {
|
2022-10-12 18:39:30 +02:00
|
|
|
return findBin(c.options.ExifToolBin, "exiftool")
|
2022-03-28 15:57:29 +02:00
|
|
|
}
|
|
|
|
|
2022-04-06 17:46:41 +02:00
|
|
|
// ExifToolJson checks if creating JSON metadata sidecar files with Exiftool is enabled.
|
2022-03-28 15:57:29 +02:00
|
|
|
func (c *Config) ExifToolJson() bool {
|
|
|
|
return !c.DisableExifTool()
|
|
|
|
}
|
|
|
|
|
2022-04-06 17:46:41 +02:00
|
|
|
// BackupYaml checks if creating YAML files is enabled.
|
2022-03-28 15:57:29 +02:00
|
|
|
func (c *Config) BackupYaml() bool {
|
|
|
|
return !c.DisableBackups()
|
|
|
|
}
|