added options to command face:sync-albums #709
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I like facerecognition and its sync-album command. Because I don't want/need to create albums for all persons I added an option to create only albums for selected persons. I also like to create albums with photos containing several persons therefore I added a mode option "Album-per-person" vs "Album-combined". Also added a list persons option to allow to list persons from command line.
Options added to command face:sync-albums:
-l, --list_persons : List all person defined for a given user_id
-p, --person_name=PERSON_NAME : Sync albums for a given user and person name(s) (separeted using comma). If not used, sync all persons defined by the user
-m, --mode=MODE : Album creation mode. Use "Album-per-person" to create one album for each given person via person_name parameter. Use "Album-combined" to create one album for all person names given via person_name parameter. [default: "Album-per-user"]
I hope this is meaningful/helpful also for others. Of course open for feedback / discussion.
Cheers,
Marcel