mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Download: Add Disabled, Originals, MediaRaw & MediaSidecar Flags #2234
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)
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/photoprism/photoprism/pkg/sanitize"
|
||||
"github.com/photoprism/photoprism/pkg/clean"
|
||||
)
|
||||
|
||||
// Strings is a simple string map that should not be accessed by multiple goroutines.
|
||||
@@ -63,9 +63,9 @@ func (s *StringMap) Log(key string) (val string) {
|
||||
}
|
||||
|
||||
if val = s.Get(key); val != "" {
|
||||
return sanitize.Log(val)
|
||||
return clean.Log(val)
|
||||
} else {
|
||||
return sanitize.Log(key)
|
||||
return clean.Log(key)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user