SbsOnDemand
Classes | Functions
SbsOnDemand::Feed Namespace Reference

Module for managing video feeds. More...

Classes

class  Feed
 Represents a video feed. More...

Functions

def getDefaultFeeds
 Gets the default set of video feeds.
def getMenuFeeds
 Gets the set of video feeds from SBS website menu.
def searchFeed
 Gets a video feed based on a search query.
def getFeedFromUrl
 Gets a video feed from the specified url.
def getFeedFromId
 Gets a video feed by its unique feed identifier (PID)

Detailed Description

Module for managing video feeds.


Function Documentation

def SbsOnDemand::Feed::getDefaultFeeds ( )

Gets the default set of video feeds.

Returns:
Dict of Video objects, with their name as key
def SbsOnDemand::Feed::getFeedFromId (   feedId)

Gets a video feed by its unique feed identifier (PID)

Parameters:
feedIdthe feed unique identifier
def SbsOnDemand::Feed::getFeedFromUrl (   url)

Gets a video feed from the specified url.

Parameters:
urlthe absolute url to fetch the feed from
Returns:
A Feed object
def SbsOnDemand::Feed::getMenuFeeds ( )

Gets the set of video feeds from SBS website menu.

Returns:
Array of dict objects, each object may contain a Feed object and/or an array of child Feeds
Note:
Not all feeds are video feeds, in that they may only have a title but no videos
def SbsOnDemand::Feed::searchFeed (   query)

Gets a video feed based on a search query.

Parameters:
querythe search query
Returns:
A Feed object
 All Classes Namespaces Functions Variables Properties