Playlist

class VideoService.playlist.Playlist(TITLE: str, OWNER: str, VISIBILITY: str, DESCRIPTION: str = None, TAGS: list[str] = None, VIDEOS: list[dict] = None)[source]

Bases: object

add_video(video_: Video) None[source]

Add Video

Add a video to the playlist.

Parameters

video_Video

The video to add to the playlist.

property playlist: dict

Playlist JSON

Get a JSON object representing the playlist.

Returns

dict

A JSON object representing the playlist.

remove_video(video_: Video) None[source]

Remove Video

Remove a video from the playlist.

Parameters

video_Video

The video to remove from the playlist.