Updated docs

This commit is contained in:
Rhet Turnbull
2020-01-20 07:55:13 -08:00
parent c7d11d410f
commit 2908a6c3a7
4 changed files with 28 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
""" version info """
__version__ = "0.22.3"
__version__ = "0.22.4"

View File

@@ -1328,6 +1328,8 @@ class PhotosDB:
If more than one arg, returns photos matching all the criteria (e.g. keywords AND persons)
images: if True, returns image files, if False, does not return images; default is True
movies: if True, returns movie files, if False, does not return movies; default is False
from_date: return photos with creation date >= from_date (datetime.datetime object, default None)
to_date: return photos with creation date <= to_date (datetime.datetime object, default None)
"""
photos_sets = [] # list of photo sets to perform intersection of
if not any([keywords, uuid, persons, albums, from_date, to_date]):

View File

@@ -289,6 +289,24 @@ def create_path_by_date(dest, dt):
return new_dest
# TODO: this doesn't always work, still looking for a way to
# force Photos to open the library being operated on
# def _open_photos_library_applescript(library_path):
# """ Force Photos to open a specific library
# library_path: path to the Photos library """
# open_scpt = AppleScript(
# f"""
# on openLibrary
# tell application "Photos"
# activate
# open POSIX file "{library_path}"
# end tell
# end openLibrary
# """
# )
# open_scpt.run()
def _export_photo_uuid_applescript(
uuid, dest, original=True, edited=False, timeout=120
):