MythTV  master
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
nv_python_libs.mainProcess.siteQueries Class Reference

Public Member Functions

def __init__ (self, apikey, target, mythtv=False, interactive=False, select_first=False, debug=False, custom_ui=None, language=None, search_all_languages=False)
 
def searchForVideos (self, search_text, pagenumber)
 
def displayTreeView (self)
 
def displayHTML (self, videocode)
 

Public Attributes

 config
 
 searchKeys
 
 searchXML
 
 firstVideo
 

Static Public Attributes

 treeViewXML
 

Detailed Description

Methods that quering video Web sites for metadata and outputs the results to stdout any errors are output
to stderr.

Definition at line 88 of file mainProcess.py.

Constructor & Destructor Documentation

◆ __init__()

def nv_python_libs.mainProcess.siteQueries.__init__ (   self,
  apikey,
  target,
  mythtv = False,
  interactive = False,
  select_first = False,
  debug = False,
  custom_ui = None,
  language = None,
  search_all_languages = False 
)
apikey (str/unicode):
    Specify the themoviedb.org API key. Applications need their own key.
    See http://api.themoviedb.org/2.1/ to get your own API key

mythtv (True/False):
    When True, the movie metadata is being returned has the key and values massaged to match MythTV
    When False, the movie metadata is being returned matches what TMDB returned

interactive (True/False):
    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):
    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 (tvdb_ui.BaseUI subclass):
    A callable subclass of tvdb_ui.BaseUI (overrides interactive option)

language (2 character language abbreviation):
    The language of the returned data. Is also the language search
    uses. Default is "en" (English). For full list, run..

    >>> MovieDb().config['valid_languages'] #doctest: +ELLIPSIS
    ['da', 'fi', 'nl', ...]

search_all_languages (True/False):
    By default, TMDB 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 92 of file mainProcess.py.

Member Function Documentation

◆ searchForVideos()

def nv_python_libs.mainProcess.siteQueries.searchForVideos (   self,
  search_text,
  pagenumber 
)
Search for vidoes that match the search text and output the results a XML to stdout

Definition at line 229 of file mainProcess.py.

◆ displayTreeView()

def nv_python_libs.mainProcess.siteQueries.displayTreeView (   self)
Create a Tree View specific to a target site and output the results a XML to stdout. Nested
directories are permissable.

Definition at line 259 of file mainProcess.py.

◆ displayHTML()

def nv_python_libs.mainProcess.siteQueries.displayHTML (   self,
  videocode 
)
Request a custom Web page from the grabber and display on stdout

Definition at line 292 of file mainProcess.py.

Member Data Documentation

◆ treeViewXML

nv_python_libs.mainProcess.siteQueries.treeViewXML
static

◆ config

nv_python_libs.mainProcess.siteQueries.config

Definition at line 129 of file mainProcess.py.

Referenced by nv_python_libs.mtv.mtv_api.Videos._initLogger(), nv_python_libs.youtube.youtube_api.Videos._initLogger(), nv_python_libs.vimeo.vimeo_api.Videos._initLogger(), nv_python_libs.mainProcess.siteQueries.displayHTML(), nv_python_libs.mainProcess.siteQueries.displayTreeView(), nv_python_libs.mashups.mashups_api.Videos.displayTreeView(), nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.rev3.rev3_api.Videos.displayTreeView(), nv_python_libs.vimeo.vimeo_api.Videos.displayTreeView(), giantbomb.giantbomb_api.gamedbQueries.gameData(), giantbomb.giantbomb_api.gamedbQueries.gameSearch(), nv_python_libs.mashups.mashups_api.Videos.getMashupsConfig(), nv_python_libs.pbs.pbs_api.Videos.getPBSConfig(), nv_python_libs.rev3.rev3_api.Videos.getRev3Config(), nv_python_libs.youtube.youtube_api.Videos.getSearchResults(), nv_python_libs.tedtalks.tedtalks_api.Videos.getTedTalksConfig(), nv_python_libs.thewb.thewb_api.Videos.getTheWBConfig(), nv_python_libs.mnvsearch.mnvsearch_api.Videos.getTreeviewData(), nv_python_libs.youtube.youtube_api.Videos.getUserPreferences(), nv_python_libs.rev3.rev3_api.Videos.getUserPreferences(), nv_python_libs.tedtalks.tedtalks_api.Videos.getUserPreferences(), nv_python_libs.pbs.pbs_api.Videos.getUserPreferences(), nv_python_libs.mashups.mashups_api.Videos.getUserPreferences(), nv_python_libs.thewb.thewb_api.Videos.getUserPreferences(), nv_python_libs.youtube.youtube_api.Videos.getVideoCategories(), nv_python_libs.rev3.rev3_api.Videos.getVideoID(), nv_python_libs.mtv.mtv_api.Videos.getVideos(), nv_python_libs.vimeo.vimeo_api.Videos.getVideos(), nv_python_libs.youtube.youtube_api.Videos.getVideosForURL(), nv_python_libs.mtv.mtv_api.Videos.getVideosForURL(), nv_python_libs.mnvsearch.mnvsearch_api.Videos.searchForVideos(), nv_python_libs.mashups.mashups_api.Videos.searchForVideos(), nv_python_libs.tedtalks.tedtalks_api.Videos.searchForVideos(), nv_python_libs.thewb.thewb_api.Videos.searchForVideos(), nv_python_libs.rev3.rev3_api.Videos.searchForVideos(), nv_python_libs.mnvsearch.mnvsearch_api.Videos.searchTitle(), nv_python_libs.tedtalks.tedtalks_api.Videos.searchTitle(), nv_python_libs.mtv.mtv_api.Videos.searchTitle(), nv_python_libs.thewb.thewb_api.Videos.searchTitle(), nv_python_libs.rev3.rev3_api.Videos.searchTitle(), nv_python_libs.pbs.pbs_api.Videos.updatePBS(), nv_python_libs.rev3.rev3_api.Videos.updateRev3(), nv_python_libs.tedtalks.tedtalks_api.Videos.updateTedTalks(), nv_python_libs.thewb.thewb_api.Videos.updateTheWB(), and nv_python_libs.mtv.mtv_api.Videos.videoDetails().

◆ searchKeys

nv_python_libs.mainProcess.siteQueries.searchKeys

Definition at line 139 of file mainProcess.py.

◆ searchXML

nv_python_libs.mainProcess.siteQueries.searchXML

Definition at line 141 of file mainProcess.py.

◆ firstVideo

nv_python_libs.mainProcess.siteQueries.firstVideo

The documentation for this class was generated from the following file: