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:
Michael Mayer
2022-04-15 09:42:07 +02:00
parent 0a9f6a72bc
commit 92e6c4fe1e
335 changed files with 3606 additions and 2708 deletions

View File

@@ -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)
}
}