Commit Graph

111 Commits

Author SHA1 Message Date
Rhet Turnbull
e7099d250b Concurrency refactor 999 (#1029)
* Working on making export threadsafe, #999

* Working on making export threadsafe, #999

* refactor for concurrent export, #999

* Fixed race condition in ExportRecord context manager
2023-04-01 09:39:08 -07:00
Rhet Turnbull
2c4d0f4546 Fixed help text 2023-03-14 12:26:19 -07:00
Rhet Turnbull
1d1b69601f Added --replace-keywords to batch-edit #1018 (#1019) 2023-03-14 11:58:13 -07:00
Rhet Turnbull
a08680ed02 Added python and macOS versions to --version (#1008) 2023-02-28 06:43:06 -08:00
Rhet Turnbull
b7c98aa548 Fixed docstring 2023-02-25 14:49:16 -08:00
Rhet Turnbull
0694662f78 Moved custom param types to param_types 2023-02-25 14:43:37 -08:00
Rhet Turnbull
94f484e9ec Feature date added 998 (#1003)
* Implemented --date-added, #998

* Added --date-added-from-photo

* Fixed typehint
2023-02-25 14:38:49 -08:00
Rhet Turnbull
1661cc9f0b Feature batch edit 949 (#1001)
* Initial implementation of batch-edit, #949

* Added tests for batch-edit, #949
2023-02-25 14:37:26 -08:00
Rhet Turnbull
d3267cb0f0 Added ability to show from export filepath to osxphotos show (#995) 2023-02-20 08:44:17 -08:00
Rhet Turnbull
206490cacc Fixed click.confirm to not abort 2023-02-19 23:00:33 -08:00
Rhet Turnbull
a46f8bd244 Fix error during cleanup, #987 (#993) 2023-02-19 22:51:52 -08:00
Rhet Turnbull
06b02b4a23 Feature exportdb update 990 (#992)
* Added cloud_guid, #990

* Added fingerprint, cloud_guid to PhotoInfo.json

* Added stub for --migrate-photos-library

* Added --migrate-photos-library option to exportdb, #990
2023-02-19 22:51:25 -08:00
Rhet Turnbull
b03670dc70 Implemented show command, #964 (#982) 2023-02-12 08:11:38 -08:00
Rhet Turnbull
ce297ced0a Added lock files to export to minimize name collisions (#981) 2023-02-11 18:21:15 -08:00
Rhet Turnbull
d990670f72 Bug fix timezone none 976 (#978)
* Allow --uuid-from-file to read from stdin, #965

* Load query options before opening the database

* Fix for timezone in database has value None, #976
2023-02-11 09:26:57 -08:00
Rhet Turnbull
97a0a65d8a Feature UUID from stdin 965 (#979)
* Allow --uuid-from-file to read from stdin, #965

* Load query options before opening the database
2023-02-11 09:26:42 -08:00
Rhet Turnbull
0982d0c548 Fixes regression for #640 2023-02-05 18:00:04 -08:00
Rhet Turnbull
007f0e0960 Feature add query command (#970)
* Added query_command and example

* Refactored QUERY_OPTIONS, added query_command, refactored verbose, #930, #931

* Added query options to debug-dump, #966

* Refactored query, #602

* Added precedence test for --load-config

* Refactored handling of query options

* Refactored export_photo

* Removed extraneous print

* Updated API_README

* Updated examples
2023-02-05 14:48:42 -08:00
Rhet Turnbull
9efb99cbd4 Fixed --dry-run with --finder-tags-keywords and --xattr-template, #958 (#961) 2023-01-28 18:08:19 -08:00
Rhet Turnbull
0c293d0bf5 Refactor verbose 931 (#960)
* Began refactoring verbose code for #931

* Fixed tests for timewarp due to verbose refactor

* Updated test data

* More refactoring for #931

* Refactored queryoptions.py

* Refactored queryoptions.py

* Refactored queryoptions.py

* Refactored echo_error

* Refactored debug

* Refactored debug

* Refactored use of verbose in export

* Refactored use of verbose in export

* Refactred --verbose in add-locations and debug-dump

* Refactored --verbose for

* Refactored --verbose for osxphotos exportdb

* Refactored --verbose for osxphotos import

* Refactored --verbose for osxphotos orphans

* Refactored --verbose for osxphotos snap-diff

* Refactored --verbose for osxphotos sync

* Refactored --verbose for osxphotos timewarp

* Added default verbose() function to verbose
2023-01-28 17:44:20 -08:00
oPromessa
80ee142c7f Added --not-edited option to query | Added corresponding tests for query and export (#956)
* Added --not-edited option to query

Added --not-edited option to query (exclusive with --edited) to search for photos that have not been edited.

Added test scenarios for --edited and -.-not-edited

* Added --not-edited option to query

Added --not-edited option to query (exclusive with --edited) to search for photos that have not been edited.

Added query test scenarios for --edited and --not-edited

Added export test scenarios for --edited and --not-edited

* Added --not-edited option to query

Added --not-edited option to query (exclusive with --edited) to search for photos that have not been edited.

Added query test scenarios for --edited and --not-edited

Added export test scenarios for --edited and --not-edited

* Made edited/non-edited mutually exclusive in query() to match other filters

Co-authored-by: Rhet Turnbull <rturnbull@gmail.com>
2023-01-24 20:11:47 -08:00
Rhet Turnbull
369fa553e8 Feature timewarp parse date 867 (#951)
* Working on tests for timewarp --parse-date

* Test working for --parse-date

* Refactored date utils out of timewarp.py

* Added timezone to --parse-date, updated tests

* Added cog to README
2023-01-22 22:35:05 -08:00
Rhet Turnbull
69eb4b070c Updated search info for Ventura, #937 (#943) 2023-01-21 10:29:31 -08:00
Rhet Turnbull
8c46b8e545 Bug slow import 934 (#942)
* Working on slow import, #934

* Tests working for #934

* Removed unnecessary report record updates
2023-01-21 07:44:42 -08:00
Rhet Turnbull
83d14ac191 Feature add locations 929 (#932)
* Initial implementation of add-locations command #929

* Updated help for add-locations

* Fixed handling of shared albums in sync

* Added test for add-locations
2023-01-16 21:26:02 -08:00
Rhet Turnbull
aca2333477 Fixed handling of shared albums in sync 2023-01-16 10:03:19 -08:00
oPromessa
1e58e20b3c On import consider GPS Location from XMP if EXIF is not available. (#912)
* On import consider GPS Location from XMP if EXIF is not available.

On import consider GPS Location from XMP if EXIF is not available. Relevant for MOV file types without EXIF.

* Revert "On import consider GPS Location from XMP if EXIF is not available."

This reverts commit 5d0dc82148.

* On import consider GPS Location from XMP if EXIF is not available.

Relevant for MOV files which do not have EXIF.
2023-01-15 19:03:05 -08:00
Rhet Turnbull
51ca4d30f3 Added score info to inspect, #899 (#927) 2023-01-15 18:55:42 -08:00
Rhet Turnbull
81f4a4c3ee Fixed 'Photos 5 only' text, #916 (#925) 2023-01-15 15:22:55 -08:00
Rhet Turnbull
c383212822 Feature add sync command 887 (#921)
* Starting work on sync command, #887

* Added parsing for --set, --merge

* Added query options

* Added --incloud, --not-incloud, --not-missing, --cloudasset, --not-cloudasset to query options, #800 (#902)

* Got basic import logic working

* Got basic set/merge logic working

* add to album now working

* Resolve paths for --import

* Refactored report writer to reuse code from export report

* Removed report_writer_sync.py

* add oPromessa as a contributor for code (#914)

* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* Added --profile, --watch, --breakpoint, --debug as global options (#917)

* Removed unnecessary import

* Release 0.56.0 (#918)

* Release 0 56 0 (#919)

* Release 0.56.0

* Release 0.56.0

* Updated CHANGELOG.md [skip ci]

* Got CSV reporting, summary results done

* Added json report for sync results

* Added sqlite report for sync

* Basic set/merge working for sync

* sync mvp working

* Added help text for sync

* Added test for sync

* Updated tests for sync

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-01-14 22:06:20 -08:00
Rhet Turnbull
4b3433fc20 Added --profile, --watch, --breakpoint, --debug as global options (#917) 2023-01-13 17:49:30 -08:00
Rhet Turnbull
8caee5a81b Added --incloud, --not-incloud, --not-missing, --cloudasset, --not-cloudasset to query options, #800 (#902) 2023-01-08 14:53:16 -08:00
Rhet Turnbull
a8586f911f Release files for 0.55.3 (#879) 2022-12-19 09:08:07 -08:00
Rhet Turnbull
1b89f85a41 Fix for #853, deleted files not in exportdb --report (#877) 2022-12-19 08:02:29 -08:00
Rhet Turnbull
b2b814954b Added errors to export database, --update-errors to export, #872 (#874) 2022-12-18 14:16:38 -08:00
Rhet Turnbull
3c8d7e13b9 Added edited live video path to inspect, #865 2022-12-11 20:43:01 -08:00
Rhet Turnbull
ce5145ff85 Added --post-function to import, #842 (#851) 2022-11-24 09:26:09 -08:00
Rhet Turnbull
6bf24ad2de Feature import parse date 847 (#850)
* Working on #847

* Added additional help for --parse-date

* Added tests for --parse-date
2022-11-23 22:56:02 -08:00
Rhet Turnbull
a727dc9294 Added --alt-copy method for #807 (#835) 2022-11-14 21:42:02 -08:00
Rhet Turnbull
ea76297800 Fixed help text for , #828 2022-11-14 06:01:00 -08:00
Rhet Turnbull
5665cf1804 Refactor update osxmetadata (#804)
* Updated osxmetadata to use v1.0.0

* Added README_DEV

* fix for missing detected_text xattr

* fix for missing detected_text xattr
2022-10-15 22:12:11 -07:00
Rhet Turnbull
d5a9001661 Updated PhotosAlbum code 2022-09-02 18:07:09 -07:00
Rhet Turnbull
fe514e79ab Added close for import_db 2022-09-01 20:46:08 -07:00
Rhet Turnbull
cee2acad53 Updated sqlitekvstore 2022-09-01 06:17:15 -07:00
Rhet Turnbull
b8ad8016aa Added --resume to import, #768 (#784) 2022-08-31 22:14:49 -07:00
Rhet Turnbull
e39776b51e Added --field to dump and query, #777 (#779) 2022-08-27 21:05:57 -07:00
Rhet Turnbull
af9311c9c8 Fixed --print to work with {tab} 2022-08-27 11:11:38 -07:00
Rhet Turnbull
5eaeb72c3e Added --print to dump, added {tab} 2022-08-27 10:50:25 -07:00
Rhet Turnbull
8e986b451e Added --print, --quiet, #769, #770 (#773) 2022-08-26 22:17:12 -07:00
Rhet Turnbull
991511af07 Added --report to import command (#766) 2022-08-22 07:29:53 -07:00