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