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 | detectUserLocationByIP (self) |
Start - Utility functions. More... | |
def | massageDescription (self, text) |
def | textUtf8 (self, text) |
def | ampReplace (self, text) |
def | setTreeViewIcon (self, dir_icon=None) |
def | processVideoUrl (self, url) |
End of Utility functions. More... | |
def | searchTitle (self, title, pagenumber, pagelen) |
def | searchForVideos (self, title, pagenumber) |
def | displayTreeView (self) |
def | makeURL (self, URL) |
def | getVideos (self, dir_dict, dictionaries) |
def | getVideosForURL (self, url, dictionaries) |
def | getVideosForGroupURL (self, url, dictionaries) |
Public Attributes | |
config | |
mythxml | |
log_name | |
log | |
error_messages | |
key_translation | |
tree_dir_icon | |
channel | |
tree_key | |
next_page | |
groupview_image | |
Static Public Attributes | |
tree_order | |
CHANGE. More... | |
tree_org | |
tree_customize | |
feed_names | |
feed_icons | |
group_id | |
groupview | |
treeview | |
channel_icon | |
Private Member Functions | |
def | _initLogger (self) |
Main interface to http://www.dailymotion.com This is done to support a common naming framework for all python Netvision plugins no matter their site target. Supports search and tree view methods The apikey is a not required to access http://www.dailymotion.com
Definition at line 96 of file dailymotion_api.py.
def nv_python_libs.dailymotion.dailymotion_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 104 of file dailymotion_api.py.
def nv_python_libs.dailymotion.dailymotion_api.Videos.detectUserLocationByIP | ( | self | ) |
Start - Utility functions.
Get longitude and latitiude to find videos relative to your location. Up to three different servers will be tried before giving up. return a dictionary e.g. {'Latitude': '43.6667', 'Country': 'Canada', 'Longitude': '-79.4167', 'City': 'Toronto'} return an empty dictionary if there were any errors Code found at: http://blog.suinova.com/2009/04/from-ip-to-geolocation-country-city.html
Definition at line 544 of file dailymotion_api.py.
def nv_python_libs.dailymotion.dailymotion_api.Videos.massageDescription | ( | self, | |
text | |||
) |
Removes HTML markup from a text string. @param text The HTML source. @return The plain text. If the HTML source contains non-ASCII entities or character references, this is a Unicode string.
Definition at line 603 of file dailymotion_api.py.
Referenced by nv_python_libs.vimeo.vimeo_api.Videos.getTreeVideos(), nv_python_libs.mtv.mtv_api.Videos.getVideos(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideos(), nv_python_libs.vimeo.vimeo_api.Videos.getVideos(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForGroupURL(), nv_python_libs.youtube.youtube_api.Videos.getVideosForURL(), nv_python_libs.mtv.mtv_api.Videos.getVideosForURL(), nv_python_libs.youtube.youtube_api.Videos.parseDetails(), nv_python_libs.mtv.mtv_api.Videos.searchTitle(), and nv_python_libs.vimeo.vimeo_api.Videos.searchTitle().
|
private |
Setups a logger using the logging module, returns a log object
Definition at line 637 of file dailymotion_api.py.
def nv_python_libs.dailymotion.dailymotion_api.Videos.textUtf8 | ( | self, | |
text | |||
) |
Definition at line 656 of file dailymotion_api.py.
Referenced by giantbomb.giantbomb_api.gamedbQueries.ampReplace(), nv_python_libs.mtv.mtv_api.Videos.ampReplace(), nv_python_libs.dailymotion.dailymotion_api.Videos.ampReplace(), nv_python_libs.vimeo.vimeo_api.Videos.ampReplace(), nv_python_libs.mtv.mtv_api.Videos.massageDescription(), nv_python_libs.dailymotion.dailymotion_api.Videos.massageDescription(), nv_python_libs.vimeo.vimeo_api.Videos.massageDescription(), and giantbomb.giantbomb_api.gamedbQueries.massageText().
def nv_python_libs.dailymotion.dailymotion_api.Videos.ampReplace | ( | self, | |
text | |||
) |
Replace all "&" characters with "&"
Definition at line 668 of file dailymotion_api.py.
Referenced by nv_python_libs.vimeo.vimeo_api.Videos.getTreeVideos(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForGroupURL(), nv_python_libs.mtv.mtv_api.Videos.getVideosForURL(), nv_python_libs.mtv.mtv_api.Videos.massageDescription(), nv_python_libs.dailymotion.dailymotion_api.Videos.massageDescription(), nv_python_libs.vimeo.vimeo_api.Videos.massageDescription(), giantbomb.giantbomb_api.gamedbQueries.massageText(), nv_python_libs.dailymotion.dailymotion_api.Videos.processVideoUrl(), nv_python_libs.vimeo.vimeo_api.Videos.processVideoUrl(), and nv_python_libs.vimeo.vimeo_api.Videos.searchTitle().
def nv_python_libs.dailymotion.dailymotion_api.Videos.setTreeViewIcon | ( | self, | |
dir_icon = None |
|||
) |
Check if there is a specific generic tree view icon. If not default to the channel icon. return self.tree_dir_icon
Definition at line 676 of file dailymotion_api.py.
Referenced by nv_python_libs.mashups.mashups_api.Videos.displayTreeView(), nv_python_libs.vimeo.vimeo_api.Videos.getTreeVideos(), nv_python_libs.mtv.mtv_api.Videos.getVideos(), nv_python_libs.dailymotion.dailymotion_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(), and nv_python_libs.mashups.mashups_api.Videos.searchForVideos().
def nv_python_libs.dailymotion.dailymotion_api.Videos.processVideoUrl | ( | self, | |
url | |||
) |
End of Utility functions.
Definition at line 698 of file dailymotion_api.py.
Referenced by nv_python_libs.vimeo.vimeo_api.Videos.getTreeVideos(), and nv_python_libs.vimeo.vimeo_api.Videos.searchTitle().
def nv_python_libs.dailymotion.dailymotion_api.Videos.searchTitle | ( | self, | |
title, | |||
pagenumber, | |||
pagelen | |||
) |
Key word video search of the Dailymotion web site return an array of matching item dictionaries return
Definition at line 703 of file dailymotion_api.py.
Referenced by nv_python_libs.hulu.hulu_api.Videos.displayTreeView(), nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.mnvsearch.mnvsearch_api.Videos.searchForVideos(), nv_python_libs.tedtalks.tedtalks_api.Videos.searchForVideos(), nv_python_libs.hulu.hulu_api.Videos.searchForVideos(), nv_python_libs.thewb.thewb_api.Videos.searchForVideos(), and nv_python_libs.rev3.rev3_api.Videos.searchForVideos().
def nv_python_libs.dailymotion.dailymotion_api.Videos.searchForVideos | ( | self, | |
title, | |||
pagenumber | |||
) |
Common name for a video search. Used to interface with MythTV plugin NetVision
Definition at line 717 of file dailymotion_api.py.
def nv_python_libs.dailymotion.dailymotion_api.Videos.displayTreeView | ( | self | ) |
Gather the Dailymotion categories/feeds/...etc then get a max page of videos meta data in each of them. return array of directories and their video meta data
Definition at line 762 of file dailymotion_api.py.
def nv_python_libs.dailymotion.dailymotion_api.Videos.makeURL | ( | self, | |
URL | |||
) |
Form a URL to search for videos return a URL
Definition at line 787 of file dailymotion_api.py.
Referenced by nv_python_libs.mtv.mtv_api.Videos.getVideos(), and nv_python_libs.dailymotion.dailymotion_api.Videos.getVideos().
def nv_python_libs.dailymotion.dailymotion_api.Videos.getVideos | ( | self, | |
dir_dict, | |||
dictionaries | |||
) |
Parse a list made of category lists and retrieve video meta data return a dictionary of directory names and category's video meta data
Definition at line 813 of file dailymotion_api.py.
def nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForURL | ( | self, | |
url, | |||
dictionaries | |||
) |
Get the video meta data for url search return the video dictionary of directories and their video mata data
Definition at line 847 of file dailymotion_api.py.
Referenced by nv_python_libs.youtube.youtube_api.Videos.getVideosForCategory().
def nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForGroupURL | ( | self, | |
url, | |||
dictionaries | |||
) |
Get the video meta data for a group url search return the video dictionary of directories and their video mata data
Definition at line 973 of file dailymotion_api.py.
|
static |
CHANGE.
Definition at line 341 of file dailymotion_api.py.
Referenced by nv_python_libs.dailymotion.dailymotion_api.Videos.displayTreeView(), and nv_python_libs.vimeo.vimeo_api.Videos.displayTreeView().
|
static |
Definition at line 344 of file dailymotion_api.py.
|
static |
Definition at line 405 of file dailymotion_api.py.
Referenced by nv_python_libs.mtv.mtv_api.Videos.makeURL(), and nv_python_libs.dailymotion.dailymotion_api.Videos.makeURL().
|
static |
Definition at line 428 of file dailymotion_api.py.
Referenced by nv_python_libs.mtv.mtv_api.Videos.getVideosForURL().
|
static |
Definition at line 475 of file dailymotion_api.py.
Referenced by nv_python_libs.mtv.mtv_api.Videos.getVideos(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideos(), and nv_python_libs.vimeo.vimeo_api.Videos.getVideos().
|
static |
Definition at line 530 of file dailymotion_api.py.
Referenced by nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForGroupURL().
|
static |
Definition at line 531 of file dailymotion_api.py.
Referenced by nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForGroupURL().
|
static |
Definition at line 534 of file dailymotion_api.py.
Referenced by nv_python_libs.dailymotion.dailymotion_api.Videos.displayTreeView(), and nv_python_libs.vimeo.vimeo_api.Videos.displayTreeView().
|
static |
Definition at line 535 of file dailymotion_api.py.
Referenced by nv_python_libs.pbs.pbs_api.Videos.displayTreeView(), nv_python_libs.tedtalks.tedtalks_api.Videos.displayTreeView(), nv_python_libs.mashups.mashups_api.Videos.displayTreeView(), nv_python_libs.hulu.hulu_api.Videos.displayTreeView(), nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.rev3.rev3_api.Videos.displayTreeView(), nv_python_libs.mtv.mtv_api.Videos.getVideos(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideos(), nv_python_libs.vimeo.vimeo_api.Videos.getVideos(), nv_python_libs.mashups.mashups_api.Videos.searchForVideos(), and nv_python_libs.pbs.pbs_api.Videos.searchForVideos().
nv_python_libs.dailymotion.dailymotion_api.Videos.config |
Definition at line 137 of file dailymotion_api.py.
Referenced by nv_python_libs.mtv.mtv_api.Videos._initLogger(), nv_python_libs.youtube.youtube_api.Videos._initLogger(), nv_python_libs.dailymotion.dailymotion_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.hulu.hulu_api.Videos.displayTreeView(), nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.rev3.rev3_api.Videos.displayTreeView(), nv_python_libs.dailymotion.dailymotion_api.Videos.displayTreeView(), nv_python_libs.vimeo.vimeo_api.Videos.displayTreeView(), giantbomb.giantbomb_api.gamedbQueries.gameData(), giantbomb.giantbomb_api.gamedbQueries.gameSearch(), nv_python_libs.hulu.hulu_api.Videos.getHuluConfig(), 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.hulu.hulu_api.Videos.getUserPreferences(), 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.mashups.mashups_api.Videos.getUserPreferences(), nv_python_libs.pbs.pbs_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.dailymotion.dailymotion_api.Videos.getVideos(), nv_python_libs.vimeo.vimeo_api.Videos.getVideos(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForGroupURL(), nv_python_libs.youtube.youtube_api.Videos.getVideosForURL(), nv_python_libs.mtv.mtv_api.Videos.getVideosForURL(), nv_python_libs.dailymotion.dailymotion_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.hulu.hulu_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.hulu.hulu_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.dailymotion.dailymotion_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().
nv_python_libs.dailymotion.dailymotion_api.Videos.mythxml |
Definition at line 138 of file dailymotion_api.py.
Referenced by nv_python_libs.youtube.youtube_api.Videos.parseDetails(), nv_python_libs.dailymotion.dailymotion_api.Videos.processVideoUrl(), and nv_python_libs.vimeo.vimeo_api.Videos.processVideoUrl().
nv_python_libs.dailymotion.dailymotion_api.Videos.log_name |
nv_python_libs.dailymotion.dailymotion_api.Videos.log |
Definition at line 148 of file dailymotion_api.py.
nv_python_libs.dailymotion.dailymotion_api.Videos.error_messages |
Definition at line 158 of file dailymotion_api.py.
Referenced by nv_python_libs.mashups.mashups_api.Videos.displayTreeView(), nv_python_libs.hulu.hulu_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(), nv_python_libs.hulu.hulu_api.Videos.getHuluConfig(), 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.vimeo.vimeo_api.Videos.getTreeVideos(), nv_python_libs.youtube.youtube_api.Videos.getVideoCategories(), nv_python_libs.youtube.youtube_api.Videos.getVideoDetails(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForGroupURL(), nv_python_libs.youtube.youtube_api.Videos.getVideosForURL(), nv_python_libs.mtv.mtv_api.Videos.getVideosForURL(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForURL(), nv_python_libs.mashups.mashups_api.Videos.searchForVideos(), nv_python_libs.tedtalks.tedtalks_api.Videos.searchForVideos(), nv_python_libs.hulu.hulu_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.hulu.hulu_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.vimeo.vimeo_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().
nv_python_libs.dailymotion.dailymotion_api.Videos.key_translation |
Definition at line 161 of file dailymotion_api.py.
Referenced by nv_python_libs.vimeo.vimeo_api.Videos.getTreeVideos(), nv_python_libs.mtv.mtv_api.Videos.getVideosForURL(), and nv_python_libs.youtube.youtube_api.Videos.translateItem().
nv_python_libs.dailymotion.dailymotion_api.Videos.tree_dir_icon |
Definition at line 680 of file dailymotion_api.py.
nv_python_libs.dailymotion.dailymotion_api.Videos.channel |
Definition at line 721 of file dailymotion_api.py.
Referenced by nv_python_libs.mashups.mashups_api.Videos.displayTreeView(), nv_python_libs.hulu.hulu_api.Videos.displayTreeView(), nv_python_libs.youtube.youtube_api.Videos.displayTreeView(), nv_python_libs.thewb.thewb_api.Videos.displayTreeView(), nv_python_libs.rev3.rev3_api.Videos.displayTreeView(), nv_python_libs.dailymotion.dailymotion_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.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.hulu.hulu_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.hulu.hulu_api.Videos.searchTitle(), nv_python_libs.thewb.thewb_api.Videos.searchTitle(), nv_python_libs.youtube.youtube_api.Videos.searchTitle(), nv_python_libs.rev3.rev3_api.Videos.searchTitle(), and nv_python_libs.vimeo.vimeo_api.Videos.searchTitle().
nv_python_libs.dailymotion.dailymotion_api.Videos.tree_key |
Definition at line 781 of file dailymotion_api.py.
Referenced by nv_python_libs.mtv.mtv_api.Videos.getVideos(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideos(), nv_python_libs.vimeo.vimeo_api.Videos.getVideos(), nv_python_libs.dailymotion.dailymotion_api.Videos.getVideosForGroupURL(), nv_python_libs.youtube.youtube_api.Videos.getVideosForURL(), nv_python_libs.mtv.mtv_api.Videos.getVideosForURL(), nv_python_libs.mtv.mtv_api.Videos.makeURL(), and nv_python_libs.dailymotion.dailymotion_api.Videos.makeURL().
nv_python_libs.dailymotion.dailymotion_api.Videos.next_page |
Definition at line 870 of file dailymotion_api.py.
Referenced by nv_python_libs.vimeo.vimeo_api.Videos.getTreeVideos().
nv_python_libs.dailymotion.dailymotion_api.Videos.groupview_image |
Definition at line 1016 of file dailymotion_api.py.