Skip to content

Commit

Permalink
screen-recording (not available <= _PHOTOS_4_VERSION). set to None
Browse files Browse the repository at this point in the history
  • Loading branch information
oPromessa committed Jun 18, 2024
1 parent 982df4c commit ae296ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions osxphotos/cli/print_photo_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def print_photo_info(
"date_modified",
"portrait",
"screenshot",
# "screen_recording",
"screen_recording",
"slow_mo",
"time_lapse",
"hdr",
Expand Down Expand Up @@ -99,7 +99,7 @@ def print_photo_info(
date_modified_iso,
p.portrait,
p.screenshot,
# p.screen_recording,
p.screen_recording,
p.slow_mo,
p.time_lapse,
p.hdr,
Expand Down
2 changes: 1 addition & 1 deletion osxphotos/photoinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@ def asdict(self, shallow: bool = True) -> dict[str, Any]:
dict_data["shared_moment"] = self.shared_moment
dict_data["shared_library"] = self.shared_library
dict_data["rating"] = self.rating
# dict_data["screen_recording"] = self.screen_recording
dict_data["screen_recording"] = self.screen_recording

return dict_data

Expand Down
2 changes: 2 additions & 0 deletions osxphotos/photosdb/photosdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,8 @@ def _process_database4(self):
True if (row[25] == 5 or row[25] == 8) else False
)
self._dbphotos[uuid]["screenshot"] = True if row[25] == 6 else False
# screen-recording (not available <= _PHOTOS_4_VERSION)
self._dbphotos[uuid]["screen_recording"] = None
self._dbphotos[uuid]["portrait"] = True if row[25] == 9 else False

# selfies (front facing camera, RKVersion.selfPortrait == 1)
Expand Down

0 comments on commit ae296ee

Please sign in to comment.