2009-06-18 19:42:27 +00:00
|
|
|
# Created By: Virgil Dupras
|
|
|
|
# Created On: 2006/11/13
|
2015-01-03 21:30:57 +00:00
|
|
|
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 08:59:46 +00:00
|
|
|
#
|
2015-01-03 21:33:16 +00:00
|
|
|
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
2009-08-05 08:59:46 +00:00
|
|
|
# which should be included with this package. The terms are also available at
|
2015-01-03 21:33:16 +00:00
|
|
|
# http://www.gnu.org/licenses/gpl-3.0.html
|
2009-06-18 19:42:27 +00:00
|
|
|
|
2010-08-15 12:42:55 +00:00
|
|
|
import logging
|
|
|
|
import re
|
2014-03-15 17:59:15 +00:00
|
|
|
import io
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2012-06-05 17:56:28 +00:00
|
|
|
from appscript import app, its, k, CommandError, ApplicationNotFoundError
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2012-06-05 17:56:28 +00:00
|
|
|
from hscommon.util import remove_invalid_xml, first
|
2013-11-16 17:06:16 +00:00
|
|
|
from hscommon.path import Path, pathify
|
2012-02-27 15:12:36 +00:00
|
|
|
from hscommon.trans import trget
|
2012-01-05 21:57:31 +00:00
|
|
|
from cocoa import proxy
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2012-01-16 15:30:45 +00:00
|
|
|
from core.scanner import ScanType
|
2011-09-20 22:40:27 +00:00
|
|
|
from core import directories
|
2012-06-05 17:56:28 +00:00
|
|
|
from core.app import JobType
|
2011-09-21 20:02:13 +00:00
|
|
|
from core_pe import _block_osx
|
|
|
|
from core_pe.photo import Photo as PhotoBase
|
|
|
|
from core_pe.app import DupeGuru as DupeGuruBase
|
2014-03-15 17:59:15 +00:00
|
|
|
from core_pe.iphoto_plist import IPhotoPlistParser
|
2012-01-16 15:30:45 +00:00
|
|
|
from .app import PyDupeGuruBase
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2012-02-27 15:12:36 +00:00
|
|
|
tr = trget('ui')
|
|
|
|
|
2010-12-31 11:10:44 +00:00
|
|
|
IPHOTO_PATH = Path('iPhoto Library')
|
2012-06-05 17:56:28 +00:00
|
|
|
APERTURE_PATH = Path('Aperture Library')
|
2010-12-31 11:10:44 +00:00
|
|
|
|
2011-05-29 14:18:03 +00:00
|
|
|
class Photo(PhotoBase):
|
|
|
|
HANDLED_EXTS = PhotoBase.HANDLED_EXTS.copy()
|
2011-06-14 17:54:50 +00:00
|
|
|
HANDLED_EXTS.update({'psd', 'nef', 'cr2', 'orf'})
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2011-05-31 14:05:12 +00:00
|
|
|
def _plat_get_dimensions(self):
|
|
|
|
return _block_osx.get_image_size(str(self.path))
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2011-05-31 14:05:12 +00:00
|
|
|
def _plat_get_blocks(self, block_count_per_side, orientation):
|
2009-06-01 09:55:11 +00:00
|
|
|
try:
|
2011-05-31 14:05:12 +00:00
|
|
|
blocks = _block_osx.getblocks(str(self.path), block_count_per_side, orientation)
|
2009-10-24 12:21:39 +00:00
|
|
|
except Exception as e:
|
2010-08-11 14:39:06 +00:00
|
|
|
raise IOError('The reading of "%s" failed with "%s"' % (str(self.path), str(e)))
|
2009-06-01 09:55:11 +00:00
|
|
|
if not blocks:
|
2010-08-11 14:39:06 +00:00
|
|
|
raise IOError('The picture %s could not be read' % str(self.path))
|
2010-02-04 12:13:08 +00:00
|
|
|
return blocks
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2013-11-10 17:00:16 +00:00
|
|
|
def _get_exif_timestamp(self):
|
|
|
|
exifdata = proxy.readExifData_(str(self.path))
|
|
|
|
if exifdata:
|
|
|
|
try:
|
|
|
|
return exifdata['{Exif}']['DateTimeOriginal']
|
|
|
|
except KeyError:
|
|
|
|
return ''
|
|
|
|
else:
|
|
|
|
return ''
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
|
|
|
|
class IPhoto(Photo):
|
2012-06-05 17:56:28 +00:00
|
|
|
def __init__(self, path, db_id):
|
|
|
|
# In IPhoto, we don't care about the db_id, we find photos by path.
|
|
|
|
Photo.__init__(self, path)
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
@property
|
2011-06-15 15:58:33 +00:00
|
|
|
def display_folder_path(self):
|
|
|
|
return IPHOTO_PATH
|
2012-06-05 17:56:28 +00:00
|
|
|
|
|
|
|
class AperturePhoto(Photo):
|
|
|
|
def __init__(self, path, db_id):
|
|
|
|
Photo.__init__(self, path)
|
|
|
|
self.db_id = db_id
|
2009-10-24 12:21:39 +00:00
|
|
|
|
2012-06-05 17:56:28 +00:00
|
|
|
@property
|
|
|
|
def display_folder_path(self):
|
|
|
|
return APERTURE_PATH
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2013-11-16 17:06:16 +00:00
|
|
|
@pathify
|
|
|
|
def get_iphoto_or_aperture_pictures(plistpath: Path, photo_class):
|
2012-06-05 17:56:28 +00:00
|
|
|
# The structure of iPhoto and Aperture libraries for the base photo list are excactly the same.
|
2013-11-16 17:06:16 +00:00
|
|
|
if not plistpath.exists():
|
2010-01-14 15:33:27 +00:00
|
|
|
return []
|
2013-11-16 17:06:16 +00:00
|
|
|
s = plistpath.open('rt', encoding='utf-8').read()
|
2010-08-15 12:42:55 +00:00
|
|
|
# There was a case where a guy had 0x10 chars in his plist, causing expat errors on loading
|
|
|
|
s = remove_invalid_xml(s, replace_with='')
|
|
|
|
# It seems that iPhoto sometimes doesn't properly escape & chars. The regexp below is to find
|
|
|
|
# any & char that is not a &-based entity (&, ", etc.). based on TextMate's XML
|
|
|
|
# bundle's regexp
|
|
|
|
s, count = re.subn(r'&(?![a-zA-Z0-9_-]+|#[0-9]+|#x[0-9a-fA-F]+;)', '', s)
|
|
|
|
if count:
|
|
|
|
logging.warning("%d invalid XML entities replacement made", count)
|
2014-03-15 17:59:15 +00:00
|
|
|
parser = IPhotoPlistParser()
|
|
|
|
try:
|
|
|
|
plist = parser.parse(io.BytesIO(s.encode('utf-8')))
|
|
|
|
except Exception:
|
|
|
|
logging.warning("iPhoto plist parsing choked on data: %r", parser.lastdata)
|
|
|
|
raise
|
2009-10-24 12:21:39 +00:00
|
|
|
result = []
|
2012-06-05 17:56:28 +00:00
|
|
|
for key, photo_data in plist['Master Image List'].items():
|
2009-06-01 09:55:11 +00:00
|
|
|
if photo_data['MediaType'] != 'Image':
|
2009-10-24 12:21:39 +00:00
|
|
|
continue
|
2009-06-01 09:55:11 +00:00
|
|
|
photo_path = Path(photo_data['ImagePath'])
|
2012-06-05 17:56:28 +00:00
|
|
|
photo = photo_class(photo_path, key)
|
2009-10-24 12:21:39 +00:00
|
|
|
result.append(photo)
|
|
|
|
return result
|
|
|
|
|
2012-06-05 17:56:28 +00:00
|
|
|
def get_iphoto_pictures(plistpath):
|
|
|
|
return get_iphoto_or_aperture_pictures(plistpath, IPhoto)
|
|
|
|
|
|
|
|
def get_aperture_pictures(plistpath):
|
|
|
|
return get_iphoto_or_aperture_pictures(plistpath, AperturePhoto)
|
|
|
|
|
|
|
|
def get_iapps_database_path(prefname):
|
|
|
|
plisturls = proxy.prefValue_inDomain_(prefname, 'com.apple.iApps')
|
|
|
|
if not plisturls:
|
|
|
|
raise directories.InvalidPathError()
|
|
|
|
plistpath = proxy.url2path_(plisturls[0])
|
|
|
|
return Path(plistpath)
|
|
|
|
|
|
|
|
def get_iphoto_database_path():
|
|
|
|
return get_iapps_database_path('iPhotoRecentDatabases')
|
|
|
|
|
|
|
|
def get_aperture_database_path():
|
|
|
|
return get_iapps_database_path('ApertureLibraries')
|
|
|
|
|
2009-10-24 12:21:39 +00:00
|
|
|
class Directories(directories.Directories):
|
|
|
|
def __init__(self):
|
|
|
|
directories.Directories.__init__(self, fileclasses=[Photo])
|
2009-12-16 15:51:26 +00:00
|
|
|
try:
|
|
|
|
self.iphoto_libpath = get_iphoto_database_path()
|
2013-11-16 17:06:16 +00:00
|
|
|
self.set_state(self.iphoto_libpath.parent(), directories.DirectoryState.Excluded)
|
2009-12-16 15:51:26 +00:00
|
|
|
except directories.InvalidPathError:
|
|
|
|
self.iphoto_libpath = None
|
2012-06-05 17:56:28 +00:00
|
|
|
try:
|
|
|
|
self.aperture_libpath = get_aperture_database_path()
|
2013-11-16 17:06:16 +00:00
|
|
|
self.set_state(self.aperture_libpath.parent(), directories.DirectoryState.Excluded)
|
2012-06-05 17:56:28 +00:00
|
|
|
except directories.InvalidPathError:
|
|
|
|
self.aperture_libpath = None
|
2009-10-24 12:21:39 +00:00
|
|
|
|
2011-08-27 19:33:27 +00:00
|
|
|
def _get_files(self, from_path, j):
|
2010-12-31 11:10:44 +00:00
|
|
|
if from_path == IPHOTO_PATH:
|
2009-12-16 15:51:26 +00:00
|
|
|
if self.iphoto_libpath is None:
|
|
|
|
return []
|
2011-04-12 11:22:29 +00:00
|
|
|
is_ref = self.get_state(from_path) == directories.DirectoryState.Reference
|
2009-10-24 12:21:39 +00:00
|
|
|
photos = get_iphoto_pictures(self.iphoto_libpath)
|
|
|
|
for photo in photos:
|
|
|
|
photo.is_ref = is_ref
|
|
|
|
return photos
|
2012-06-05 17:56:28 +00:00
|
|
|
elif from_path == APERTURE_PATH:
|
|
|
|
if self.aperture_libpath is None:
|
|
|
|
return []
|
|
|
|
is_ref = self.get_state(from_path) == directories.DirectoryState.Reference
|
|
|
|
photos = get_aperture_pictures(self.aperture_libpath)
|
|
|
|
for photo in photos:
|
|
|
|
photo.is_ref = is_ref
|
|
|
|
return photos
|
2009-10-24 12:21:39 +00:00
|
|
|
else:
|
2011-08-27 20:54:44 +00:00
|
|
|
return directories.Directories._get_files(self, from_path, j)
|
2009-10-24 12:21:39 +00:00
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def get_subfolders(path):
|
2012-06-05 17:56:28 +00:00
|
|
|
if path in {IPHOTO_PATH, APERTURE_PATH}:
|
2009-10-24 12:21:39 +00:00
|
|
|
return []
|
|
|
|
else:
|
|
|
|
return directories.Directories.get_subfolders(path)
|
|
|
|
|
|
|
|
def add_path(self, path):
|
2012-06-05 17:56:28 +00:00
|
|
|
if path in {IPHOTO_PATH, APERTURE_PATH}:
|
2010-01-14 15:33:27 +00:00
|
|
|
if path not in self:
|
|
|
|
self._dirs.append(path)
|
2009-10-24 12:21:39 +00:00
|
|
|
else:
|
|
|
|
directories.Directories.add_path(self, path)
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2010-12-31 11:10:44 +00:00
|
|
|
def has_iphoto_path(self):
|
2012-06-05 17:56:28 +00:00
|
|
|
return any(path in {IPHOTO_PATH, APERTURE_PATH} for path in self._dirs)
|
2010-12-31 11:10:44 +00:00
|
|
|
|
2010-08-15 13:07:44 +00:00
|
|
|
def has_any_file(self):
|
|
|
|
# If we don't do that, it causes a hangup in the GUI when we click Start Scanning because
|
|
|
|
# checking if there's any file to scan involves reading the whole library. If we have the
|
|
|
|
# iPhoto library, we assume we have at least one file.
|
2010-12-31 11:10:44 +00:00
|
|
|
if self.has_iphoto_path():
|
2010-08-15 13:07:44 +00:00
|
|
|
return True
|
|
|
|
else:
|
|
|
|
return directories.Directories.has_any_file(self)
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2011-09-20 22:40:27 +00:00
|
|
|
class DupeGuruPE(DupeGuruBase):
|
2013-11-10 16:05:03 +00:00
|
|
|
def __init__(self, view):
|
|
|
|
DupeGuruBase.__init__(self, view)
|
2009-10-24 12:21:39 +00:00
|
|
|
self.directories = Directories()
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2012-08-01 16:36:23 +00:00
|
|
|
def _do_delete(self, j, *args):
|
2009-06-01 09:55:11 +00:00
|
|
|
def op(dupe):
|
|
|
|
j.add_progress()
|
2012-08-01 16:36:23 +00:00
|
|
|
return self._do_delete_dupe(dupe, *args)
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2012-06-05 17:56:28 +00:00
|
|
|
self.deleted_aperture_photos = False
|
2009-06-01 09:55:11 +00:00
|
|
|
marked = [dupe for dupe in self.results.dupes if self.results.is_marked(dupe)]
|
2011-02-17 14:08:23 +00:00
|
|
|
j.start_job(self.results.mark_count, tr("Sending dupes to the Trash"))
|
2009-06-01 09:55:11 +00:00
|
|
|
if any(isinstance(dupe, IPhoto) for dupe in marked):
|
2011-02-17 14:08:23 +00:00
|
|
|
j.add_progress(0, desc=tr("Talking to iPhoto. Don't touch it!"))
|
2009-12-15 16:23:02 +00:00
|
|
|
try:
|
|
|
|
a = app('iPhoto')
|
|
|
|
a.activate(timeout=0)
|
|
|
|
a.select(a.photo_library_album(timeout=0), timeout=0)
|
2010-12-31 11:10:44 +00:00
|
|
|
except (CommandError, RuntimeError, ApplicationNotFoundError):
|
2009-12-15 16:23:02 +00:00
|
|
|
pass
|
2012-06-05 17:56:28 +00:00
|
|
|
if any(isinstance(dupe, AperturePhoto) for dupe in marked):
|
|
|
|
self.deleted_aperture_photos = True
|
|
|
|
j.add_progress(0, desc=tr("Talking to Aperture. Don't touch it!"))
|
|
|
|
try:
|
|
|
|
a = app('Aperture')
|
|
|
|
a.activate(timeout=0)
|
|
|
|
except (CommandError, RuntimeError, ApplicationNotFoundError):
|
|
|
|
pass
|
2010-04-12 10:21:01 +00:00
|
|
|
self.results.perform_on_marked(op, True)
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2012-08-01 16:36:23 +00:00
|
|
|
def _do_delete_dupe(self, dupe, *args):
|
2009-06-01 09:55:11 +00:00
|
|
|
if isinstance(dupe, IPhoto):
|
2011-02-17 14:08:23 +00:00
|
|
|
try:
|
|
|
|
a = app('iPhoto')
|
2012-01-20 16:34:46 +00:00
|
|
|
album = a.photo_library_album()
|
|
|
|
if album is None:
|
|
|
|
msg = "There are communication problems with iPhoto. Try opening iPhoto first, it might solve it."
|
|
|
|
raise EnvironmentError(msg)
|
|
|
|
[photo] = album.photos[its.image_path == str(dupe.path)]()
|
2011-02-17 14:08:23 +00:00
|
|
|
a.remove(photo, timeout=0)
|
|
|
|
except ValueError:
|
|
|
|
msg = "Could not find photo '{}' in iPhoto Library".format(str(dupe.path))
|
2010-04-12 10:21:01 +00:00
|
|
|
raise EnvironmentError(msg)
|
2011-02-17 14:08:23 +00:00
|
|
|
except (CommandError, RuntimeError) as e:
|
|
|
|
raise EnvironmentError(str(e))
|
2012-06-05 17:56:28 +00:00
|
|
|
if isinstance(dupe, AperturePhoto):
|
|
|
|
try:
|
|
|
|
a = app('Aperture')
|
|
|
|
# I'm flying blind here. In my own test library, all photos are in an album with the
|
|
|
|
# id "LibraryFolder", so I'm going to guess that it's the case at least most of the
|
|
|
|
# time. As a safeguard, if we don't find any library with that id, we'll use the
|
|
|
|
# first album.
|
|
|
|
# Now, about deleting: All attempts I've made at sending photos to trash failed,
|
|
|
|
# even with normal applescript. So, what we're going to do here is to create a
|
|
|
|
# "dupeGuru Trash" project and tell the user to manually send those photos to trash.
|
|
|
|
libraries = a.libraries()
|
|
|
|
library = first(l for l in libraries if l.id == 'LibraryFolder')
|
|
|
|
if library is None:
|
|
|
|
library = libraries[0]
|
|
|
|
trash_project = a.projects["dupeGuru Trash"]
|
|
|
|
if trash_project.exists():
|
|
|
|
trash_project = trash_project()
|
|
|
|
else:
|
|
|
|
trash_project = library.make(new=k.project, with_properties={k.name: "dupeGuru Trash"})
|
|
|
|
[photo] = library.image_versions[its.id == dupe.db_id]()
|
|
|
|
photo.move(to=trash_project)
|
|
|
|
except (IndexError, ValueError):
|
|
|
|
msg = "Could not find photo '{}' in Aperture Library".format(str(dupe.path))
|
|
|
|
raise EnvironmentError(msg)
|
|
|
|
except (CommandError, RuntimeError) as e:
|
|
|
|
raise EnvironmentError(str(e))
|
2009-06-01 09:55:11 +00:00
|
|
|
else:
|
2012-08-01 16:36:23 +00:00
|
|
|
DupeGuruBase._do_delete_dupe(self, dupe, *args)
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2011-06-15 15:58:33 +00:00
|
|
|
def _create_file(self, path):
|
2013-11-16 17:06:16 +00:00
|
|
|
if (self.directories.iphoto_libpath is not None) and (path in self.directories.iphoto_libpath.parent()):
|
2012-06-05 17:56:28 +00:00
|
|
|
if not hasattr(self, 'path2iphoto'):
|
|
|
|
photos = get_iphoto_pictures(self.directories.iphoto_libpath)
|
|
|
|
self.path2iphoto = {p.path: p for p in photos}
|
|
|
|
return self.path2iphoto.get(path)
|
2013-11-16 17:06:16 +00:00
|
|
|
if (self.directories.aperture_libpath is not None) and (path in self.directories.aperture_libpath.parent()):
|
2012-06-05 17:56:28 +00:00
|
|
|
if not hasattr(self, 'path2aperture'):
|
|
|
|
photos = get_aperture_pictures(self.directories.aperture_libpath)
|
|
|
|
self.path2aperture = {p.path: p for p in photos}
|
|
|
|
return self.path2aperture.get(path)
|
2011-09-20 22:40:27 +00:00
|
|
|
return DupeGuruBase._create_file(self, path)
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2013-08-25 21:10:26 +00:00
|
|
|
def _job_completed(self, jobid):
|
|
|
|
DupeGuruBase._job_completed(self, jobid)
|
2012-06-05 17:56:28 +00:00
|
|
|
if jobid == JobType.Load:
|
|
|
|
if hasattr(self, 'path2iphoto'):
|
|
|
|
del self.path2iphoto
|
|
|
|
if hasattr(self, 'path2aperture'):
|
|
|
|
del self.path2aperture
|
|
|
|
if jobid == JobType.Delete and self.deleted_aperture_photos:
|
|
|
|
msg = tr("Deleted Aperture photos were sent to a project called \"dupeGuru Trash\".")
|
|
|
|
self.view.show_message(msg)
|
|
|
|
|
2009-06-07 07:15:56 +00:00
|
|
|
def copy_or_move(self, dupe, copy, destination, dest_type):
|
2012-06-05 17:56:28 +00:00
|
|
|
if isinstance(dupe, (IPhoto, AperturePhoto)):
|
2009-06-01 09:55:11 +00:00
|
|
|
copy = True
|
2011-09-20 22:40:27 +00:00
|
|
|
return DupeGuruBase.copy_or_move(self, dupe, copy, destination, dest_type)
|
2009-06-01 09:55:11 +00:00
|
|
|
|
|
|
|
def selected_dupe_path(self):
|
|
|
|
if not self.selected_dupes:
|
|
|
|
return None
|
|
|
|
return self.selected_dupes[0].path
|
|
|
|
|
|
|
|
def selected_dupe_ref_path(self):
|
|
|
|
if not self.selected_dupes:
|
|
|
|
return None
|
|
|
|
ref = self.results.get_group_of_duplicate(self.selected_dupes[0]).ref
|
2009-10-25 11:46:26 +00:00
|
|
|
if ref is self.selected_dupes[0]: # we don't want the same pic to be displayed on both sides
|
|
|
|
return None
|
2009-06-01 09:55:11 +00:00
|
|
|
return ref.path
|
|
|
|
|
2010-12-31 11:10:44 +00:00
|
|
|
def start_scanning(self):
|
|
|
|
if self.directories.has_iphoto_path():
|
|
|
|
try:
|
|
|
|
app('iPhoto')
|
|
|
|
except ApplicationNotFoundError:
|
2011-11-04 18:37:07 +00:00
|
|
|
self.view.show_message(tr("The iPhoto application couldn't be found."))
|
2011-09-22 14:35:17 +00:00
|
|
|
return
|
|
|
|
DupeGuruBase.start_scanning(self)
|
2010-12-31 11:10:44 +00:00
|
|
|
|
2012-01-16 15:30:45 +00:00
|
|
|
class PyDupeGuru(PyDupeGuruBase):
|
|
|
|
def __init__(self):
|
|
|
|
self._init(DupeGuruPE)
|
|
|
|
|
|
|
|
def clearPictureCache(self):
|
|
|
|
self.model.scanner.clear_picture_cache()
|
|
|
|
|
|
|
|
#---Information
|
|
|
|
def getSelectedDupePath(self) -> str:
|
|
|
|
return str(self.model.selected_dupe_path())
|
|
|
|
|
|
|
|
def getSelectedDupeRefPath(self) -> str:
|
|
|
|
return str(self.model.selected_dupe_ref_path())
|
|
|
|
|
|
|
|
#---Properties
|
|
|
|
def setScanType_(self, scan_type: int):
|
|
|
|
try:
|
|
|
|
self.model.scanner.scan_type = [
|
|
|
|
ScanType.FuzzyBlock,
|
|
|
|
ScanType.ExifTimestamp,
|
|
|
|
][scan_type]
|
|
|
|
except IndexError:
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setMatchScaled_(self, match_scaled: bool):
|
|
|
|
self.model.scanner.match_scaled = match_scaled
|
|
|
|
|
|
|
|
def setMinMatchPercentage_(self, percentage: int):
|
|
|
|
self.model.scanner.threshold = percentage
|