Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor asset browsing to support grouped assets - Updated `Browse` and `passTwo` methods in `LocalAssetBrowser` to return `AssetGroup` instead of `LocalAssetFile`. - Implemented logic to handle different types of asset groups (e.g., motion photos, single images, videos). - Added album management for asset groups. - Introduced `AssetGroup` struct in `group.go` to represent linked assets. - Updated tests to validate and handle `AssetGroup` instead of individual assets. - Removed redundant album management code from `assetFromFile` method. * Refactor `LocalAssetFile` struct: remove metadata from asset * Refactor metadata reading functions to return metadata and error - Updated `ReadMetadata`, `metadataFromExiftool`, and `metadataFromDirectRead` functions to return `*metadata.Metadata` and `error` instead of setting `la.Metadata` directly. - Adjusted logic to handle the returned metadata and error appropriately. * Add Metadata field to AssetGroup struct in adapters/group.go * Refactor AssetGroup struct in adapters/group.go to support grouped assets * Refactor asset browsing to support grouped assets * Refactor `LocalAssetFile` struct: remove metadata from asset * Refactor Adapter interface to support browsing grouped assets * Refactor `AssetUpload` function in immich/asset.go don't force XMP * Refactor `UpdateAsset` pass a structure with paramters * Refactor `UpdateAsset` to accept a structure with parameters * Refactor asset group handling in upload command: manage the live photo * Refactor file browsing in upload command to use asset groups * Refactor date handling flags in AddDateHandlingFlags function default is DateMethodNameThenExif * Refactor logging in Recorder.Report() * Refactor Open() - Add functionality to list the flags and arguments used in the command to provide more context in the logs. * Refactor Open() in cmdFolder.go to use cmdFolder as a parameter * Refactor Open() in cmdFolder.go to use cmdFolder as a parameter * Refactor Open() in cmdFolder.go to use cmdFolder as a parameter * Refactor Open() in cmdFolder.go to use cmdFolder as a parameter and bind flags to environment variables * Refactor Open() in cmdFolder.go to use cmdFolder as a parameter and bind flags to environment variables * Refactor Open() in cmdFolder.go to use cmdFolder as a parameter and bind flags to environment variables Refactor NewRecorder() in fileevents.go to remove debug parameter Refactor AddCommands() in commands.go to use context and application parameters Refactor .goreleaser.yaml to update ldflags for version and commit Refactor CommandTool() in tool.nogo to remove unused imports and update error message Refactor readFolder.go to update function signature and parameter names Refactor version.go to initialize version and commit at runtime Refactor banner.go to update banner with version information Refactor flagsCommon.go to remove unused flags and function Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238.JPG.json to update creationTime and photoTakenTime Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238_1.JPG.json to update creationTime and photoTakenTime Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238.JPG(1).json to update creationTime and photoTakenTime Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238.JPG to add new file Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238_1.JPG to add new file Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238(1).JPG to add new file Refactor upload/TEST_DATA/Takeout2/Google Photos/Sans titre(9)/métadonnées.json to add new file Refactor upload/TEST_DATA/Takeout1/Google Photos/Album test 6-10-23/métadonnées.json to add new file Refactor cmdVersion/version.go to remove unused file Refactor version/version.go to update version and commit initialization Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238.JPG.json to update geoData Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238_1.JPG.json to update geoData Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238.JPG(1).json to update geoData Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238.JPG to update title and creationTime Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238_1.JPG to update title and creationTime Refactor upload/TEST_DATA/Takeout3/Photos from 2023/DSC_0238(1).JPG to update title and creationTime Refactor upload/TEST_DATA/Takeout2/Google Photos/Sans titre(9)/métadonnées.json to update title and creationTime Refactor upload/TEST_DATA/Takeout1/Google Photos/Album test 6-10-23/métadonnées.json to update title and creationTime * wip * fix log in UI wip * Refactor upload command to use separate sub-commands for different sources - The `upload` command has been refactored to use separate sub-commands for different sources of photos. - The `upload` command now has a `from-folder` sub-command to upload photos from a folder. - The `upload` command also has a `from-google-photos` sub-command to upload photos from a Google Photos takeout. * typo in upload command * Refactor NewImmichClient() in client.go to include option for dry run * Refactor upload command to use more descriptive wording for Google Photos source * Refactor client.go to write dry-run indication on the log * Refactor log.go to mask the API key flag * Refactor testgp_test.go to fix the order of live photos in the livePhotos map * Refactor testgp_test.go to fix the order of live photos in the livePhotos map * remove useless source files * Refactor main.go to handle nil log writer when logging errors * Refactor upload command to remove exif flags for the google-photos * Refactor .goreleaser.yaml * Refactor .goreleaser.yaml and go.mod files * Refactor options.go to remove UseJSONMetadata flag `` * Refactor upload command flag name for importing from a specific Google Photos album * Add documentation for Immich-go environment variables * Refactor readFolder.go to improve live photo linking logic * Refactor testgp_livephoto_test.go to improve live photo linking logic * fix issue #500 (#502) * Refactor LocalAssetFile to add LogValue method * Refactor readFolder.go to not group photo and move with a different capture date * Refactor readFolder.go to improve logging of associated metadata * Refactor log.go to separate log file opening logic * readFolder: adapt tests to write a log * Refactor metadata.go to add LogValue method * Refactor log.go to use assetFile struct for logging in logMessage function * Refactor json_test.go to include dateTaken and title fields in the test cases * Refactor json.go to simplify the GoogleMetaData struct, and fix the logValue() * Refactor log.go to fanout log in file and console with different handler * Refactor fileevent package to separate FileAndName struct and add LogValue method * Refactor googlephotos.go to improve logging and metadata handling * Fix json.go to handle photo taken time in GoogleMetaData struct * Refactor googlephotos.go to handle photo taken time in GoogleMetaData struct * Refactor uploadAsset method to improve error handling and logging * Refactor upload/ui.go to use colored logs * Refactor log.go to use console-slog for colored logs * Refactor ui to display google takeout progression * Refactor error handling in main.go * Update dependencies in go.mod * Discard macOS resource files Fixes #480 * Discard macOS resource files (#504) Fixes #480 * Refactor readFolder.go to skip banned folders during file traversal * Merge branch 'optimization--don't-parse-banned-folders' into new-cli * Merge branch 'new-cli' into next * edit release.md * Add test-config.yaml to .gitignore
- Loading branch information