Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enhance date information handling and update stack test parameters
Browse files Browse the repository at this point in the history
simulot committed Dec 22, 2024
1 parent 2e89e25 commit d0651ac
Showing 2 changed files with 15 additions and 10 deletions.
12 changes: 7 additions & 5 deletions adapters/folder/readFolder.go
Original file line number Diff line number Diff line change
@@ -45,11 +45,13 @@ func NewLocalFiles(ctx context.Context, l *fileevent.Recorder, flags *ImportFold
}

la := LocalAssetBrowser{
fsyss: fsyss,
flags: flags,
log: l,
pool: worker.NewPool(3), // TODO: Make this configurable
requiresDateInformation: flags.InclusionFlags.DateRange.IsSet() || flags.TakeDateFromFilename || flags.StackBurstPhotos,
fsyss: fsyss,
flags: flags,
log: l,
pool: worker.NewPool(3), // TODO: Make this configurable
requiresDateInformation: flags.InclusionFlags.DateRange.IsSet() ||
flags.TakeDateFromFilename || flags.StackBurstPhotos ||
flags.ManageHEICJPG != filters.HeicJpgNothing || flags.ManageRawJPG != filters.RawJPGNothing,
}
if flags.InfoCollector == nil {
flags.InfoCollector = filenames.NewInfoCollector(flags.TZ, flags.SupportedMedia)
13 changes: 8 additions & 5 deletions internal/e2eTests/stack/e2e_stack_test.go
Original file line number Diff line number Diff line change
@@ -30,15 +30,18 @@ func TestStackBurst(t *testing.T) {
"--api-key=" + myEnv["IMMICHGO_APIKEY"],
"--no-ui",
"--dry-run=false",
// "--manage-burst=Stack",
"--manage-burst=Stack",
"--manage-heic-jpeg=StackCoverHeic",
"--manage-raw-jpeg=StackCoverRaw",
"--manage-epson-fastfoto=TRUE",
// "--api-trace",
// "--log-level=debug",
myEnv["IMMICHGO_TESTFILES"] + "/EpsonfastFoto/EpsonFastFoto.zip",
// myEnv["IMMICHGO_TESTFILES"] + "/burst/storm",
// myEnv["IMMICHGO_TESTFILES"] + "/burst/Reflex",
// myEnv["IMMICHGO_TESTFILES"] + "/burst/PXL6",
// myEnv["IMMICHGO_TESTFILES"] + "/burst/Tel",
myEnv["IMMICHGO_TESTFILES"] + "/burst/Reflex",
myEnv["IMMICHGO_TESTFILES"] + "/burst/PXL6",
myEnv["IMMICHGO_TESTFILES"] + "/burst/Tel",

myEnv["IMMICHGO_TESTFILES"] + "/burst/storm",
// myEnv["IMMICHGO_TESTFILES"] + "/burst/storm full",
})

0 comments on commit d0651ac

Please sign in to comment.