diff --git a/osxphotos/_version.py b/osxphotos/_version.py index 22b1f57d..ff0b5ff0 100644 --- a/osxphotos/_version.py +++ b/osxphotos/_version.py @@ -1,4 +1,4 @@ """ version info """ -__version__ = "0.42.88" +__version__ = "0.42.89" diff --git a/osxphotos/albuminfo.py b/osxphotos/albuminfo.py index 73e64051..2446cd48 100644 --- a/osxphotos/albuminfo.py +++ b/osxphotos/albuminfo.py @@ -141,11 +141,17 @@ class AlbumInfoBaseClass: try: return self._owner except AttributeError: - query = get_query( - "cloud_album_owner", photos_ver=self._db._photos_ver, uuid=self.uuid - ) - result = self._db.execute(query).fetchone() - self._owner = result[0] if result else None + try: + personid = self._db._dbalbum_details[self.uuid][ + "cloudownerhashedpersonid" + ] + self._owner = ( + self._db._db_hashed_person_id[personid]["full_name"] + if personid + else None + ) + except KeyError: + self._owner = None return self._owner def __len__(self):