SbsOnDemand
Public Member Functions | Public Attributes | Properties | Private Member Functions | Private Attributes
SbsOnDemand::Video::Video Class Reference

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:
paramsthe 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:
paramsthe video data to be parsed
def SbsOnDemand::Video::Video::getMedia (   self,
  withUrl = True 
)

Gets the available media associated with the video.

Parameters:
withUrlwhether 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]
See also:
getMedia

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Properties