Aaron van Geffen
6870ad0d8e
Use original filename to export photos by default ( #396 )
...
* Use original filename to export photos by default, #176
* Fixed edited filename to also use original_filename if none provided.
* Rolled back previous change due to test failures
* Use original filename for edited file exports as well
Co-authored-by: Rhet Turnbull <rturnbull@gmail.com >
2021-03-14 12:19:05 -07:00
Rhet Turnbull
165f9b08f5
Fixed time zone for tests
2021-01-11 21:42:03 -08:00
Rhet Turnbull
fc416ea0b7
Fixed from_date and to_date to be timezone aware, closes #193
2020-08-08 21:03:34 -07:00
Rhet Turnbull
538bac7ade
More PhotoInfo.albums refactoring, closes #169
2020-06-21 08:18:11 -07:00
Rhet Turnbull
98b3f63a92
Refactored photosdb and photoinfo to add SearchInfo and labels
2020-05-10 19:55:09 -07:00
Rhet Turnbull
397db0d72f
Updated a couple of tests to use pytest-mock
2020-05-10 09:00:56 -07:00
Rhet Turnbull
e09f0b40f1
Changed AlbumInfo and FolderInfo interface to maintain backwards compatibility with PhotosDB.albums
2020-04-12 09:01:16 -07:00
Rhet Turnbull
1c9da5ed6f
Bug fix for PhotosDB.photos() query
2020-04-10 18:50:58 -07:00
Rhet Turnbull
3e5062684a
Changed PhotosDB albums interface as prep for adding folders
2020-04-10 17:30:37 -07:00
Rhet Turnbull
0940f039d3
Lots of work on export code
2020-03-15 10:08:56 -07:00
Rhet Turnbull
8542e1a97f
Working on export edited bug for issue #78
2020-03-14 20:07:05 -07:00
Rhet Turnbull
27994c9fd3
Removed _tmp_file code that's no longer needed
2020-01-29 05:33:47 -08:00
Rhet Turnbull
1c792a371f
Updated test for bad db
2020-01-28 05:08:53 -08:00
mwort
cfa2b4a828
Implement from_date and to_date in PhotosDB as well as query and export command. Some refactoring of CLI as well.
2020-01-20 14:04:50 +01:00
Rhet Turnbull
5099fd7715
Check that path exists in tests
2020-01-04 09:08:33 -08:00
Rhet Turnbull
e4d700fcff
Added tests for PhotoInfo.__repr__
2019-12-27 16:36:15 -08:00
Rhet Turnbull
db3416903e
Fixed bug in PhotosDB.__repr__ and added test for empty database
2019-12-27 16:05:49 -08:00
Rhet Turnbull
aee52e4cb9
Fixed missing import in photoinfo.py
2019-12-25 00:29:14 -08:00
Rhet Turnbull
d95acdf9f8
Moved PhotosDB attributes to properties instead of methods
2019-12-21 10:08:49 -08:00
Rhet Turnbull
1ddd90cbdc
Refactored PhotoInfo to use properties instead of methods--major update
2019-12-21 09:38:54 -08:00
Rhet Turnbull
b794e226e3
Restructured entire code base to make it easier to maintain. Closes #16
2019-12-21 08:06:25 -08:00
Rhet Turnbull
bea1683b94
Updated exception handling in PhotosDB.__init__()
2019-12-14 10:55:11 -08:00
Rhet Turnbull
800daf3658
Added PhotoInfo.export(); closes #10
2019-12-14 10:29:06 -08:00
Rhet Turnbull
911804317b
Updated PhotosDB.__init__() to accept positional or named arg for dbfile and added associated tests
2019-12-08 17:20:51 -08:00
Rhet Turnbull
1d006a4b50
Added get_db_path and get_library_path to PhotosDB
2019-12-07 23:54:55 -08:00
Rhet Turnbull
d22affebd7
Updated test for unknown persons
2019-12-07 20:58:14 -08:00
Rhet Turnbull
2a0f27ca57
Supports duplicate album names (treated as single album)
2019-12-07 12:51:39 -08:00
Rhet Turnbull
42baa29c18
Added external_edit for Photos 5
2019-12-01 07:36:16 -08:00
Rhet Turnbull
eb563ad297
Updated get_db_version and associated tests
2019-11-30 21:39:58 -08:00
Rhet Turnbull
68eef42599
Added path_edited() for Photos 5, still needs to be added for Photos <= 4.0
2019-11-29 08:47:11 -08:00
Rhet Turnbull
792fff13b8
added hasadjustments and tests for Photo5
2019-11-27 22:37:42 -08:00
Rhet Turnbull
b2242da9b7
cleaned up test code
2019-11-27 21:37:49 -08:00
Rhet Turnbull
44321da243
Added location (latitude/longitude), closes issue #2
2019-11-27 07:27:49 -08:00
Rhet Turnbull
51e720dce9
Added tests for hidden and favorite to both 14.6 and 15.1
2019-11-26 21:47:05 -08:00
Rhet Turnbull
b1fd019120
Added hidden and favorite and test for 10.15
2019-11-24 09:39:36 -08:00
Rhet Turnbull
83186a655d
Changed path() to return absolute path and fixed tests
2019-11-23 14:48:38 -08:00
Rhet Turnbull
243492df88
added test for 10.15/Catalina
2019-11-23 13:56:26 -08:00