MythTV  master
Public Member Functions | Public Attributes | List of all members
nv_python_libs.xsltfunctions.mevio_api.xpathFunctions Class Reference
Inheritance diagram for nv_python_libs.xsltfunctions.mevio_api.xpathFunctions:
[legend]
Collaboration diagram for nv_python_libs.xsltfunctions.mevio_api.xpathFunctions:
[legend]

Public Member Functions

def __init__ (self)
 
def mevioLinkGeneration (self, context, *arg)
 Start of XPath extension functions. More...
 
def mevioTitle (self, context, arg)
 
def mevioEpisode (self, context, arg)
 
def mevioCheckIfDBItem (self, context, *arg)
 

Public Attributes

 functList
 
 episodeRegex
 
 namespaces
 
 mediaIdFilters
 

Detailed Description

Functions specific extending XPath

Definition at line 90 of file mevio_api.py.

Constructor & Destructor Documentation

◆ __init__()

def nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.__init__ (   self)

Definition at line 93 of file mevio_api.py.

Member Function Documentation

◆ mevioLinkGeneration()

def nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.mevioLinkGeneration (   self,
  context,
arg 
)

Start of XPath extension functions.

Generate a link for the video.
Call example: 'mnvXpath:mevioLinkGeneration(string(link))'
return the url link

Definition at line 123 of file mevio_api.py.

◆ mevioTitle()

def nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.mevioTitle (   self,
  context,
  arg 
)
Parse the title string extract only the title text removing the redundant show name
Call example: 'mnvXpath:mevioTitle(./title/text())'
return the title text

Definition at line 147 of file mevio_api.py.

◆ mevioEpisode()

def nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.mevioEpisode (   self,
  context,
  arg 
)
Parse the title string and extract an episode number
Call example: 'mnvXpath:mevioEpisode(./title/text())'
return an episode element

Definition at line 175 of file mevio_api.py.

Referenced by nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.mevioTitle().

◆ mevioCheckIfDBItem()

def nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.mevioCheckIfDBItem (   self,
  context,
arg 
)
Use a unique key value pairing to find out if the 'internetcontentarticles' table already
has a matching item. This is done to save accessing the Internet when not required.
Call example: 'mnvXpath:mevioCheckIfDBItem(title, description)'
return True if a match was found
return False if a match was not found

Definition at line 189 of file mevio_api.py.

Member Data Documentation

◆ functList

nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.functList

Definition at line 94 of file mevio_api.py.

◆ episodeRegex

nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.episodeRegex

◆ namespaces

nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.namespaces

Definition at line 101 of file mevio_api.py.

◆ mediaIdFilters

nv_python_libs.xsltfunctions.mevio_api.xpathFunctions.mediaIdFilters

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