Represents a single video.
More...
List of all members.
Public Member Functions |
def | __init__ |
| Creates a video object.
|
def | getMedia |
| Gets the available media associated with the video.
|
Public Attributes |
| id |
| title |
| description |
| thumbnail |
| episodeNumber |
| availableDate |
| expirationDate |
| programName |
| keywords |
| pubDate |
| categories |
| duration |
Properties |
| media = property(getMedia) |
Private Member Functions |
def | _parseVideo |
| Parses video data and populates Video data members.
|
def | _updateVideo |
| Downloads the video data, allowing it to be parsed.
|
Private Attributes |
| _media |
| _mediaHasUrl |
Detailed Description
Represents a single video.
Constructor & Destructor Documentation
def SbsOnDemand::Video::Video::__init__ |
( |
|
self, |
|
|
|
params |
|
) |
| |
Creates a video object.
- Parameters:
-
params | the video data to be parsed |
Member Function Documentation
def SbsOnDemand::Video::Video::_parseVideo |
( |
|
self, |
|
|
|
params |
|
) |
| [private] |
Parses video data and populates Video data members.
- Parameters:
-
params | the video data to be parsed |
def SbsOnDemand::Video::Video::getMedia |
( |
|
self, |
|
|
|
withUrl = True |
|
) |
| |
Gets the available media associated with the video.
- Parameters:
-
withUrl | whether to ensure that the media has a download url |
- Returns:
- a dict with two keys, `content` and `thumbnails`, each containing an array of Media objects
Property Documentation
SbsOnDemand::Video::Video::media = property(getMedia) [static] |
The documentation for this class was generated from the following file: