Skip to content

Commit

Permalink
Made exporting more robust to metadata and file formatting errors, an…
Browse files Browse the repository at this point in the history
…d export regardless of error. Also various quality of life improvements

1. Made metadata processing more robust to deal with formatting errors / inconsistent writing the file in flickr.

2. Made the processing bar more useful with current filename shown

3. Added flag to block files from exporting if metadata or file processing fails. Previously it was blocking all the time. Now it doesn't block by default, and there's a flag if you want it to block export.

            Add this flag only if you want it block export if metadata or file processing fails. Leave it out and it will export the photo regardless of the failure.
            --export-block-if-failure

4. Added a flag for logging verbosity in the terminal while you are running the script.

            Add this flag to make the console output just show status bar while running and only show CRITICAL errors. If you don't include this flag it will show ERROR and CRITICAL.
            --quiet
  • Loading branch information
brownphotographic committed Jan 19, 2025
1 parent 5aeb431 commit 6133bbf
Show file tree
Hide file tree
Showing 2 changed files with 622 additions and 417 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ At a high level the user flow is this:
- for the account data zip extract the contents into 'metadata'
- for the photo AND video files extract the contents into 'photos'

4. *Set up your environment and run the script*:
4. *Set up your environment - dependencies*:

- System dependencies: you must have:
Python >= 3.6 (for f-strings, Path objects)
Expand Down Expand Up @@ -221,7 +221,16 @@ At a high level the user flow is this:
- Disable XMP sidecars add --no-xmp-sidecars

- Resume: If you had to stop processing, you can resume the script to process files not already processed:
- add --resume flag
--resume

- Block files from exporting: Block file export if metadata or file processing fails
Add this flag only if you want it block export if metadata or file processing fails. Leave it out and it will export the photo regardless of the failure.
--export-block-if-failure

- Logging verbosity:
Add this flag to make the console output just show status bar while running. The log files will show the errors:
--quiet


6. *Import to your tool of choice*

Expand Down
Loading

0 comments on commit 6133bbf

Please sign in to comment.