MythTV
master
|
Public Member Functions | |
def | __init__ (self, apikey, mythtv=True, interactive=False, select_first=False, debug=False, custom_ui=None, language=None, search_all_languages=False) |
def | getSeasonEpisode (self, title) |
Start - Utility functions. More... | |
def | getTheWBConfig (self) |
def | getUserPreferences (self) |
def | updateTheWB (self, create=False) |
def | searchTitle (self, title, pagenumber, pagelen, ignoreError=False) |
End of Utility functions. More... | |
def | searchForVideos (self, title, pagenumber) |
def | displayTreeView (self) |
def | createItems (self, showItems, result, urlName, showName, urlMax=None) |
Main interface to http://www.thewb.com/ 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://www.thewb.com/
Definition at line 101 of file thewb_api.py.
def nv_python_libs.thewb.thewb_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 109 of file thewb_api.py.
def nv_python_libs.thewb.thewb_api.Videos.getSeasonEpisode | ( | self, | |
title | |||
) |
Start - Utility functions.
Check is there is any season or episode number information in an item's title return array of season and/or episode numbers plus any duration in minutes and seconds return array with None values
Definition at line 205 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.searchTitle().
def nv_python_libs.thewb.thewb_api.Videos.getTheWBConfig | ( | self | ) |
Read the MNV The WB grabber "thewb_config.xml" configuration file return nothing
Definition at line 219 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.getUserPreferences(), and nv_python_libs.thewb.thewb_api.Videos.searchForVideos().
def nv_python_libs.thewb.thewb_api.Videos.getUserPreferences | ( | self | ) |
Read the thewb_config.xml and user preference thewb.xml file. If the thewb.xml file does not exist then create it. If the thewb.xml file is too old then update it. return nothing
Definition at line 239 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.displayTreeView().
def nv_python_libs.thewb.thewb_api.Videos.updateTheWB | ( | self, | |
create = False |
|||
) |
Create or update the thewb.xml user preferences file return nothing
Definition at line 277 of file thewb_api.py.
def nv_python_libs.thewb.thewb_api.Videos.searchTitle | ( | self, | |
title, | |||
pagenumber, | |||
pagelen, | |||
ignoreError = False |
|||
) |
End of Utility functions.
Key word video search of the TheWB web site return an array of matching item elements return
Definition at line 370 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), and nv_python_libs.thewb.thewb_api.Videos.searchForVideos().
def nv_python_libs.thewb.thewb_api.Videos.searchForVideos | ( | self, | |
title, | |||
pagenumber | |||
) |
Common name for a video search. Used to interface with MythTV plugin NetVision
Definition at line 497 of file thewb_api.py.
def nv_python_libs.thewb.thewb_api.Videos.displayTreeView | ( | self | ) |
Gather the The WB feeds then get a max page of videos meta data in each of them Display the results and exit
Definition at line 562 of file thewb_api.py.
def nv_python_libs.thewb.thewb_api.Videos.createItems | ( | self, | |
showItems, | |||
result, | |||
urlName, | |||
showName, | |||
urlMax = None |
|||
) |
Create a dictionary of MNV compliant RSS items from the results of a RSS feed show search. Also merge with any items that were found by using the Web search. Identical items use the RSS feed item data over the search item as RSS provides better results. return nothing as the show item dictionary will have all the results
Definition at line 755 of file thewb_api.py.
nv_python_libs.thewb.thewb_api.Videos.config |
Definition at line 142 of file thewb_api.py.
Referenced by nv_python_libs.youtube.youtube_api.Videos._initLogger(), nv_python_libs.vimeo.vimeo_api.Videos._initLogger(), nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.vimeo.vimeo_api.Videos.displayTreeView(), giantbomb.giantbomb_api.gamedbQueries.gameData(), giantbomb.giantbomb_api.gamedbQueries.gameSearch(), nv_python_libs.youtube.youtube_api.Videos.getSearchResults(), nv_python_libs.thewb.thewb_api.Videos.getTheWBConfig(), nv_python_libs.youtube.youtube_api.Videos.getUserPreferences(), nv_python_libs.thewb.thewb_api.Videos.getUserPreferences(), nv_python_libs.youtube.youtube_api.Videos.getVideoCategories(), nv_python_libs.vimeo.vimeo_api.Videos.getVideos(), nv_python_libs.youtube.youtube_api.Videos.getVideosForURL(), nv_python_libs.thewb.thewb_api.Videos.searchForVideos(), nv_python_libs.thewb.thewb_api.Videos.searchTitle(), and nv_python_libs.thewb.thewb_api.Videos.updateTheWB().
nv_python_libs.thewb.thewb_api.Videos.common |
Definition at line 150 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems(), nv_python_libs.youtube.youtube_api.Videos.displayTreeView(), nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.youtube.youtube_api.Videos.massageDescription(), nv_python_libs.youtube.youtube_api.Videos.parseDetails(), nv_python_libs.thewb.thewb_api.Videos.searchForVideos(), nv_python_libs.thewb.thewb_api.Videos.searchTitle(), and nv_python_libs.thewb.thewb_api.Videos.updateTheWB().
nv_python_libs.thewb.thewb_api.Videos.log_name |
Definition at line 153 of file thewb_api.py.
Referenced by nv_python_libs.youtube.youtube_api.Videos._initLogger(), and nv_python_libs.vimeo.vimeo_api.Videos._initLogger().
nv_python_libs.thewb.thewb_api.Videos.logger |
Definition at line 155 of file thewb_api.py.
nv_python_libs.thewb.thewb_api.Videos.error_messages |
Definition at line 165 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.vimeo.vimeo_api.Videos.displayTreeView(), nv_python_libs.youtube.youtube_api.Videos.getSearchResults(), nv_python_libs.thewb.thewb_api.Videos.getTheWBConfig(), nv_python_libs.vimeo.vimeo_api.Videos.getTreeVideos(), nv_python_libs.youtube.youtube_api.Videos.getVideoCategories(), nv_python_libs.youtube.youtube_api.Videos.getVideoDetails(), nv_python_libs.youtube.youtube_api.Videos.getVideosForURL(), nv_python_libs.thewb.thewb_api.Videos.searchForVideos(), nv_python_libs.thewb.thewb_api.Videos.searchTitle(), nv_python_libs.vimeo.vimeo_api.Videos.searchTitle(), and nv_python_libs.thewb.thewb_api.Videos.updateTheWB().
nv_python_libs.thewb.thewb_api.Videos.channel |
Definition at line 168 of file thewb_api.py.
Referenced by nv_python_libs.youtube.youtube_api.Videos.displayTreeView(), nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.vimeo.vimeo_api.Videos.displayTreeView(), nv_python_libs.vimeo.vimeo_api.Videos.getTreeVideos(), nv_python_libs.youtube.youtube_api.Videos.getVideosForURL(), nv_python_libs.thewb.thewb_api.Videos.searchForVideos(), nv_python_libs.thewb.thewb_api.Videos.searchTitle(), nv_python_libs.youtube.youtube_api.Videos.searchTitle(), and nv_python_libs.vimeo.vimeo_api.Videos.searchTitle().
nv_python_libs.thewb.thewb_api.Videos.s_e_Patterns |
Definition at line 172 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.getSeasonEpisode().
nv_python_libs.thewb.thewb_api.Videos.channel_icon |
Definition at line 187 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), and nv_python_libs.vimeo.vimeo_api.Videos.getVideos().
nv_python_libs.thewb.thewb_api.Videos.thewb_config |
Definition at line 232 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.thewb.thewb_api.Videos.getUserPreferences(), nv_python_libs.thewb.thewb_api.Videos.searchForVideos(), nv_python_libs.thewb.thewb_api.Videos.searchTitle(), and nv_python_libs.thewb.thewb_api.Videos.updateTheWB().
nv_python_libs.thewb.thewb_api.Videos.userPrefs |
Definition at line 259 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), and nv_python_libs.thewb.thewb_api.Videos.updateTheWB().
nv_python_libs.thewb.thewb_api.Videos.channelLanguage |
Definition at line 669 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems().
nv_python_libs.thewb.thewb_api.Videos.itemAuthor |
Definition at line 670 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems().
nv_python_libs.thewb.thewb_api.Videos.itemFilter |
Definition at line 671 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems().
nv_python_libs.thewb.thewb_api.Videos.titleFilter |
Definition at line 672 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems(), and nv_python_libs.thewb.thewb_api.Videos.searchTitle().
nv_python_libs.thewb.thewb_api.Videos.linkFilter |
Definition at line 673 of file thewb_api.py.
Referenced by nv_python_libs.xsltfunctions.bliptvXSL_api.xpathFunctions.bliptvDownloadLinkGeneration(), nv_python_libs.xsltfunctions.bliptvXSL_api.xpathFunctions.bliptvFlvLinkGeneration(), nv_python_libs.thewb.thewb_api.Videos.createItems(), and nv_python_libs.thewb.thewb_api.Videos.searchTitle().
nv_python_libs.thewb.thewb_api.Videos.descFilter1 |
Definition at line 674 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems().
nv_python_libs.thewb.thewb_api.Videos.descFilter2 |
Definition at line 675 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems().
nv_python_libs.thewb.thewb_api.Videos.pubdateFilter |
Definition at line 676 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems().
nv_python_libs.thewb.thewb_api.Videos.thumbNailFilter |
Definition at line 677 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.searchTitle().
nv_python_libs.thewb.thewb_api.Videos.itemThumbNail |
Definition at line 678 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems(), and nv_python_libs.thewb.thewb_api.Videos.searchTitle().
nv_python_libs.thewb.thewb_api.Videos.itemDwnLink |
Definition at line 679 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems(), and nv_python_libs.thewb.thewb_api.Videos.searchTitle().
nv_python_libs.thewb.thewb_api.Videos.rssName |
Definition at line 680 of file thewb_api.py.
nv_python_libs.thewb.thewb_api.Videos.feedFilter |
Definition at line 681 of file thewb_api.py.
nv_python_libs.thewb.thewb_api.Videos.HTMLparser |
Definition at line 682 of file thewb_api.py.
Referenced by nv_python_libs.thewb.thewb_api.Videos.createItems().