2020-12-17 10:23:17 +01:00
|
|
|
package entity
|
|
|
|
|
|
|
|
import "github.com/photoprism/photoprism/internal/classify"
|
|
|
|
|
|
|
|
type Priorities map[string]int
|
|
|
|
|
|
|
|
// Data source names.
|
|
|
|
const (
|
|
|
|
SrcAuto = ""
|
2021-08-15 20:57:26 +02:00
|
|
|
SrcDefault = "default"
|
2020-12-17 10:23:17 +01:00
|
|
|
SrcManual = "manual"
|
|
|
|
SrcEstimate = "estimate"
|
|
|
|
SrcName = "name"
|
|
|
|
SrcMeta = "meta"
|
|
|
|
SrcXmp = "xmp"
|
|
|
|
SrcYaml = "yaml"
|
2021-08-12 17:49:48 +02:00
|
|
|
SrcMarker = "marker"
|
2020-12-17 10:23:17 +01:00
|
|
|
SrcImage = classify.SrcImage
|
|
|
|
SrcKeyword = classify.SrcKeyword
|
|
|
|
SrcLocation = classify.SrcLocation
|
|
|
|
)
|
|
|
|
|
2021-08-12 12:05:10 +02:00
|
|
|
// SrcPriority maps source priorities.
|
2020-12-17 10:23:17 +01:00
|
|
|
var SrcPriority = Priorities{
|
|
|
|
SrcAuto: 1,
|
2021-08-15 20:57:26 +02:00
|
|
|
SrcDefault: 1,
|
2020-12-17 10:23:17 +01:00
|
|
|
SrcEstimate: 2,
|
|
|
|
SrcName: 4,
|
|
|
|
SrcYaml: 8,
|
|
|
|
SrcLocation: 8,
|
2021-08-12 17:49:48 +02:00
|
|
|
SrcMarker: 8,
|
2020-12-17 10:23:17 +01:00
|
|
|
SrcImage: 8,
|
|
|
|
SrcKeyword: 16,
|
|
|
|
SrcMeta: 16,
|
|
|
|
SrcXmp: 32,
|
|
|
|
SrcManual: 64,
|
|
|
|
}
|