Video

class VideoService.video.Video(TITLE: str, VIDEO_FILENAME: str, VIDEO_FILETYPE: str, THUMBNAIL_FILENAME: str, THUMBNAIL_FILETYPE: str, UPLOAD_DATE: str, OWNER: str, VISIBILITY: str, LENGTH: int, DESCRIPTION: str = None, TAGS: list[str] = None, LIKES: int = None, VIEWS: int = None)[source]

Bases: object

update_likes(likes: int) None[source]

Update Likes

Update the likes of the video.

Parameters

likesint

The number of likes to add to the video.

update_views(views: int) None[source]

Update Views

Update the views of the video.

Parameters

viewsint

The number of views to add to the video.

property video: dict

Video JSON

Get a JSON object representing the video.

Returns

dict

A JSON object representing the video.