mirror of
https://github.com/instaloader/instaloader.git
synced 2024-11-04 09:22:29 +01:00
parent
67d3b4fca1
commit
6b24b54591
@ -284,6 +284,20 @@ class Post:
|
||||
return self._field('video_url')
|
||||
return None
|
||||
|
||||
@property
|
||||
def video_view_count(self) -> Optional[int]:
|
||||
"""View count of the video, or None."""
|
||||
if self.is_video:
|
||||
return self._field('video_view_count')
|
||||
return None
|
||||
|
||||
@property
|
||||
def video_duration(self) -> Optional[float]:
|
||||
"""Duration of the video in seconds, or None."""
|
||||
if self.is_video:
|
||||
return self._field('video_duration')
|
||||
return None
|
||||
|
||||
@property
|
||||
def viewer_has_liked(self) -> Optional[bool]:
|
||||
"""Whether the viewer has liked the post, or None if not logged in."""
|
||||
|
Loading…
Reference in New Issue
Block a user