nv_python_libs::thewb::thewb_api Namespace Reference

Classes

class  OutStreamEncoder
class  Videos

Functions

def can_int
def getSeasonEpisode
def getTheWBConfig
def getUserPreferences
def updateTheWB
def searchTitle
def searchForVideos
def displayTreeView
def createItems

Variables

string __title__ = "thewb_api - Simple-to-use Python interface to the The WB RSS feeds (http://www.thewb.com/)"
string __author__ = "R.D. Vaughan"
string __purpose__
string __version__ = "v0.1.3"
string version = ''
 thewb_config
 userPrefs
 channel_icon
 channelLanguage
 itemAuthor
 itemFilter
 titleFilter
 linkFilter
 descFilter1
 descFilter2
 pubdateFilter
 thumbNailFilter
 itemThumbNail
 itemDwnLink
 rssName
 feedFilter
 HTMLparser

Function Documentation

def nv_python_libs::thewb::thewb_api::can_int (   x  ) 
Takes a string, checks if it is numeric.
>>> _can_int("2")
True
>>> _can_int("A test")
False

Definition at line 88 of file thewb_api.py.

def nv_python_libs::thewb::thewb_api::getSeasonEpisode (   self,
  title 
)
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 210 of file thewb_api.py.

def nv_python_libs::thewb::thewb_api::getTheWBConfig (   self  ) 
Read the MNV The WB grabber "thewb_config.xml" configuration file
return nothing

Definition at line 224 of file thewb_api.py.

def nv_python_libs::thewb::thewb_api::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 244 of file thewb_api.py.

def nv_python_libs::thewb::thewb_api::updateTheWB (   self,
  create = False 
)
Create or update the thewb.xml user preferences file
return nothing

Definition at line 282 of file thewb_api.py.

def nv_python_libs::thewb::thewb_api::searchTitle (   self,
  title,
  pagenumber,
  pagelen,
  ignoreError = False 
)
Key word video search of the TheWB web site
return an array of matching item elements
return

Definition at line 375 of file thewb_api.py.

def nv_python_libs::thewb::thewb_api::searchForVideos (   self,
  title,
  pagenumber 
)
Common name for a video search. Used to interface with MythTV plugin NetVision

Definition at line 502 of file thewb_api.py.

def nv_python_libs::thewb::thewb_api::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 567 of file thewb_api.py.

def nv_python_libs::thewb::thewb_api::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 760 of file thewb_api.py.


Variable Documentation

string nv_python_libs::thewb::thewb_api::__title__ = "thewb_api - Simple-to-use Python interface to the The WB RSS feeds (http://www.thewb.com/)"

Definition at line 13 of file thewb_api.py.

Definition at line 14 of file thewb_api.py.

Initial value:
'''
This python script is intended to perform a variety of utility functions to search and access text
meta data, video and image URLs from thewb. These routines process RSS feeds provided by The WB
(http://www.thewb.com/). The specific "The WB" RSS feeds that are processed are controled through
a user XML preference file usually found at "~/.mythtv/MythNetvision/userGrabberPrefs/thewb.xml"
'''

Definition at line 15 of file thewb_api.py.

Definition at line 22 of file thewb_api.py.

Definition at line 76 of file thewb_api.py.

Definition at line 237 of file thewb_api.py.

Definition at line 264 of file thewb_api.py.

Definition at line 592 of file thewb_api.py.

Definition at line 674 of file thewb_api.py.

Definition at line 675 of file thewb_api.py.

Definition at line 676 of file thewb_api.py.

Definition at line 677 of file thewb_api.py.

Definition at line 678 of file thewb_api.py.

Definition at line 679 of file thewb_api.py.

Definition at line 680 of file thewb_api.py.

Definition at line 681 of file thewb_api.py.

Definition at line 682 of file thewb_api.py.

Definition at line 683 of file thewb_api.py.

Definition at line 684 of file thewb_api.py.

Definition at line 685 of file thewb_api.py.

Definition at line 686 of file thewb_api.py.

Definition at line 687 of file thewb_api.py.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Sun Feb 12 06:42:33 2012 for MythTV by  doxygen 1.6.3