MythTV  0.26-pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions | Public Attributes
nv_python_libs.pbs.pbs_api.Videos Class Reference

List of all members.

Public Member Functions

def __init__
def getPBSConfig
 Start - Utility functions.
def getUserPreferences
def updatePBS
def searchForVideos
 End of Utility functions.
def displayTreeView

Public Attributes

 config
 common
 log_name
 logger
 error_messages
 channel
 channel_icon
 mashups_api
 pbs_config
 userPrefs
 Search

Detailed Description

Main interface to http://video.pbs.org/
This is done to support a common naming framework for all python Netvision plugins no matter their
site target.

Supports search methods
The apikey is a not required to access http://video.pbs.org/

Definition at line 106 of file pbs_api.py.


Constructor & Destructor Documentation

def nv_python_libs.pbs.pbs_api.Videos.__init__ (   self,
  apikey,
  mythtv = True,
  interactive = False,
  select_first = False,
  debug = False,
  custom_ui = None,
  language = None,
  search_all_languages = False 
)
apikey (str/unicode):
    Specify the target site API key. Applications need their own key in some cases

mythtv (True/False):
    When True, the returned meta data is being returned has the key and values massaged to match MythTV
    When False, the returned meta data  is being returned matches what target site returned

interactive (True/False): (This option is not supported by all target site apis)
    When True, uses built-in console UI is used to select the correct show.
    When False, the first search result is used.

select_first (True/False): (This option is not supported currently implemented in any grabbers)
    Automatically selects the first series search result (rather
    than showing the user a list of more than one series).
    Is overridden by interactive = False, or specifying a custom_ui

debug (True/False):
     shows verbose debugging information

custom_ui (xx_ui.BaseUI subclass): (This option is not supported currently implemented in any grabbers)
    A callable subclass of interactive class (overrides interactive option)

language (2 character language abbreviation): (This option is not supported by all target site apis)
    The language of the returned data. Is also the language search
    uses. Default is "en" (English). For full list, run..

search_all_languages (True/False): (This option is not supported by all target site apis)
    By default, a Netvision grabber will only search in the language specified using
    the language option. When this is True, it will search for the
    show in any language

Definition at line 114 of file pbs_api.py.


Member Function Documentation

Start - Utility functions.

Read the MNV PBS grabber "pbs_config.xml" configuration file
return nothing

Definition at line 204 of file pbs_api.py.

Read the pbs_config.xml and user preference pbs.xml file.
If the pbs.xml file does not exist then create it.
If the pbs.xml file is too old then update it.
return nothing

Definition at line 224 of file pbs_api.py.

Referenced by nv_python_libs.rev3.rev3_api.Videos.displayTreeView(), and nv_python_libs.tedtalks.tedtalks_api.Videos.searchForVideos().

def nv_python_libs.pbs.pbs_api.Videos.updatePBS (   self,
  create = False 
)
Create or update the pbs.xml user preferences file
return nothing

Definition at line 263 of file pbs_api.py.

def nv_python_libs.pbs.pbs_api.Videos.searchForVideos (   self,
  title,
  pagenumber 
)

End of Utility functions.

Common name for a video search. Used to interface with MythTV plugin NetVision

Definition at line 378 of file pbs_api.py.

Gather all videos for each PBS show
Display the results and exit

Definition at line 403 of file pbs_api.py.


Member Data Documentation

Definition at line 145 of file pbs_api.py.

Definition at line 206 of file pbs_api.py.

Definition at line 382 of file pbs_api.py.

Referenced by nv_python_libs.pbs.pbs_api.Videos::displayTreeView().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends