Added favorite and hidden to cmd_line
This commit is contained in:
@@ -21,7 +21,7 @@ from Foundation import *
|
||||
from . import _applescript
|
||||
|
||||
|
||||
# TODO: Add RKMaster.originalFileName to Photos 4 code for original_file
|
||||
# TODO: Add test for __str__ and to_json
|
||||
# TODO: Add favorites, hidden
|
||||
# TODO: Add location
|
||||
# TODO: standardize _ and __ as leading char for private variables
|
||||
@@ -1095,6 +1095,8 @@ class PhotoInfo:
|
||||
"path": self.path(),
|
||||
"ismissing": self.ismissing(),
|
||||
"hasadjustments": self.hasadjustments(),
|
||||
"favorite": self.favorite(),
|
||||
"hidden": self.hidden(),
|
||||
}
|
||||
return yaml.dump(info, sort_keys=False)
|
||||
|
||||
@@ -1114,6 +1116,8 @@ class PhotoInfo:
|
||||
"path": self.path(),
|
||||
"ismissing": self.ismissing(),
|
||||
"hasadjustments": self.hasadjustments(),
|
||||
"favorite": self.favorite(),
|
||||
"hidden": self.hidden(),
|
||||
}
|
||||
return json.dumps(pic)
|
||||
|
||||
|
||||
@@ -187,6 +187,8 @@ def print_photo_info(photos, json=False):
|
||||
"path",
|
||||
"ismissing",
|
||||
"hasadjustments",
|
||||
"favorite",
|
||||
"hidden",
|
||||
]
|
||||
)
|
||||
for p in photos:
|
||||
@@ -204,6 +206,8 @@ def print_photo_info(photos, json=False):
|
||||
p.path(),
|
||||
p.ismissing(),
|
||||
p.hasadjustments(),
|
||||
p.favorite(),
|
||||
p.hidden(),
|
||||
]
|
||||
)
|
||||
for row in dump:
|
||||
|
||||
Reference in New Issue
Block a user