Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Import from Archive #14

Closed
fxstein opened this issue Oct 21, 2022 · 2 comments
Closed

Feature: Import from Archive #14

fxstein opened this issue Oct 21, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@fxstein
Copy link
Owner

fxstein commented Oct 21, 2022

Imports and archives are normally performed directly from the root of the GoPro sdcard. In some cases, it is required to import an archive instead. This is especially helpful when mobile collection is limited to creating archives and further processing is then performed at home or in the office.

goprox creates archives like:

20220930092409_GoPro_Hero10_2442.tar.gz
20220930093920_GoPro_Hero10_8034.tar.gz
20220930103800_GoPro Max_6013.tar.gz
20220930103807_GoPro_Hero11_8909.tar.gz
20220930103816_GoPro_Hero11_5131.tar.gz

Currently, an archive needs to be uncompressed into a directory and then goprox can import from there.
If the source is an archive file *.tar.gz the import process should happen automatically without the need for a manual decompression step.

@fxstein fxstein self-assigned this Oct 21, 2022
@fxstein fxstein added the enhancement New feature or request label Oct 21, 2022
fxstein added a commit that referenced this issue Oct 23, 2022
If source is .tar.gz a temp directory is created and the content of the archive are extracted into it. The temp directory is then passed on as the source directory to operate on. On exit the temp directory is removed via an EXIT trap
@fxstein
Copy link
Owner Author

fxstein commented Oct 24, 2022

Ok Import from a single archive now works natively. However, if the source points to a directory that contains archives, it copies them as is into the library. This is due to the code handing over the directory to exiftool for processing.
At the minimum, we need to exclude *.tar.gz from all exiftool steps.

@fxstein
Copy link
Owner Author

fxstein commented Oct 25, 2022

Imports are now limited to images and videos. c3ac627

@fxstein fxstein closed this as completed Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant