parameters: (self,
                  apikey,
                  target,
                  mythtv = False,
                  interactive = False,
                  select_first = False,
                  debug = False,
                  custom_ui = None,
                  language = None,
                  search_all_languages = False, ###CHANGE - Needs to be added
                  )
docstring: 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
docstring_summary: 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
docstring_tokens: 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
function: def __init__(self,
                  apikey,
                  target,
                  mythtv = False,
                  interactive = False,
                  select_first = False,
                  debug = False,
                  custom_ui = None,
                  language = None,
                  search_all_languages = False, ###CHANGE - Needs to be added
                  ):
          """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
  
          """
          self.config = {}
  
          self.config['apikey'] = apikey
          self.config['target'] = target.Videos(apikey, mythtv = mythtv,
                  interactive = interactive,
                  select_first = select_first,
                  debug = debug,
                  custom_ui = custom_ui,
                  language = language,
                  search_all_languages = search_all_languages,)
          self.searchKeys = ['title', 'releasedate', 'overview', 'url', 'thumbnail', 'video', 'runtime', 'viewcount']
  
          self.searchXML = {'header': """<?xml version="1.0" encoding="UTF-8"?>""", 'rss': """
  <rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:cnettv="http://cnettv.com/mrss/"
  xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
  xmlns:media="http://search.yahoo.com/mrss/"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:amp="http://www.adobe.com/amp/1.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:mythtv="http://www.mythtv.org/wiki/MythNetvision_Grabber_Script_Format">""", 'channel': """
      <channel>
          <title>%(channel_title)s</title>
          <link>%(channel_link)s</link>
          <description>%(channel_description)s</description>
          <numresults>%(channel_numresults)d</numresults>
          <returned>%(channel_returned)d</returned>
          <startindex>%(channel_startindex)d</startindex>""", 'item': """
          <item>
              <title>%(item_title)s</title>
              <author>%(item_author)s</author>
              <pubDate>%(item_pubdate)s</pubDate>
              <description>%(item_description)s</description>
              <link>%(item_link)s</link>
              <media:group>
                  <media:thumbnail url='%(item_thumbnail)s'/>
                  <media:content url='%(item_url)s' duration='%(item_duration)s' width='%(item_width)s' height='%(item_height)s' lang='%(item_lang)s'/>
              </media:group>
              <rating>%(item_rating)s</rating>
          </item>""", 'end_channel': """
      </channel>""", 'end_rss': """
  </rss>
  """,
      'nextpagetoken': """
          <nextpagetoken>%(nextpagetoken)s</nextpagetoken>""",
      'prevpagetoken': """
          <prevpagetoken>%(prevpagetoken)s</prevpagetoken>"""
      }
  
          self.treeViewXML = {'header': """<?xml version="1.0" encoding="UTF-8"?>""", 'rss': """
  <rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:cnettv="http://cnettv.com/mrss/"
  xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
  xmlns:media="http://search.yahoo.com/mrss/"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:amp="http://www.adobe.com/amp/1.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:mythtv="http://www.mythtv.org/wiki/MythNetvision_Grabber_Script_Format">""", 'start_channel': """
      <channel>
          <title>%(channel_title)s</title>
          <link>%(channel_link)s</link>
          <description>%(channel_description)s</description>
          <numresults>%(channel_numresults)d</numresults>
          <returned>%(channel_returned)d</returned>
          <startindex>%(channel_startindex)d</startindex>""", "start_directory": """
              <directory name="%s" thumbnail="%s">""", 'item': """
                  <item>
                      <title>%(item_title)s</title>
                      <author>%(item_author)s</author>
                      <pubDate>%(item_pubdate)s</pubDate>
                      <description>%(item_description)s</description>
                      <link>%(item_link)s</link>
                      <media:group>
                          <media:thumbnail url='%(item_thumbnail)s'/>
                          <media:content url='%(item_url)s' duration='%(item_duration)s' width='%(item_width)s' height='%(item_height)s' lang='%(item_lang)s'/>
                      </media:group>
                      <rating>%(item_rating)s</rating>
                  </item>""", "end_directory": """
              </directory>""", 'end_channel': """
      </channel>""", 'end_rss': """
  </rss>
  """, }
function_tokens: def __init__ ( self , apikey , target , mythtv = False , interactive = False , select_first = False , debug = False , custom_ui = None , language = None , search_all_languages = False , ###CHANGE - Needs to be added ) : self . config = { } self . config [ 'apikey' ] = apikey self . config [ 'target' ] = target . Videos ( apikey , mythtv = mythtv , interactive = interactive , select_first = select_first , debug = debug , custom_ui = custom_ui , language = language , search_all_languages = search_all_languages , ) self . searchKeys = [ 'title' , 'releasedate' , 'overview' , 'url' , 'thumbnail' , 'video' , 'runtime' , 'viewcount' ] self . searchXML = { 'header' : """<?xml version="1.0" encoding="UTF-8"?>""" , 'rss' : """
  <rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:cnettv="http://cnettv.com/mrss/"
  xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
  xmlns:media="http://search.yahoo.com/mrss/"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:amp="http://www.adobe.com/amp/1.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:mythtv="http://www.mythtv.org/wiki/MythNetvision_Grabber_Script_Format">""" , 'channel' : """
      <channel>
          <title>%(channel_title)s</title>
          <link>%(channel_link)s</link>
          <description>%(channel_description)s</description>
          <numresults>%(channel_numresults)d</numresults>
          <returned>%(channel_returned)d</returned>
          <startindex>%(channel_startindex)d</startindex>""" , 'item' : """
          <item>
              <title>%(item_title)s</title>
              <author>%(item_author)s</author>
              <pubDate>%(item_pubdate)s</pubDate>
              <description>%(item_description)s</description>
              <link>%(item_link)s</link>
              <media:group>
                  <media:thumbnail url='%(item_thumbnail)s'/>
                  <media:content url='%(item_url)s' duration='%(item_duration)s' width='%(item_width)s' height='%(item_height)s' lang='%(item_lang)s'/>
              </media:group>
              <rating>%(item_rating)s</rating>
          </item>""" , 'end_channel' : """
      </channel>""" , 'end_rss' : """
  </rss>
  """ , 'nextpagetoken' : """
          <nextpagetoken>%(nextpagetoken)s</nextpagetoken>""" , 'prevpagetoken' : """
          <prevpagetoken>%(prevpagetoken)s</prevpagetoken>""" } self . treeViewXML = { 'header' : """<?xml version="1.0" encoding="UTF-8"?>""" , 'rss' : """
  <rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:cnettv="http://cnettv.com/mrss/"
  xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
  xmlns:media="http://search.yahoo.com/mrss/"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:amp="http://www.adobe.com/amp/1.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:mythtv="http://www.mythtv.org/wiki/MythNetvision_Grabber_Script_Format">""" , 'start_channel' : """
      <channel>
          <title>%(channel_title)s</title>
          <link>%(channel_link)s</link>
          <description>%(channel_description)s</description>
          <numresults>%(channel_numresults)d</numresults>
          <returned>%(channel_returned)d</returned>
          <startindex>%(channel_startindex)d</startindex>""" , "start_directory" : """
              <directory name="%s" thumbnail="%s">""" , 'item' : """
                  <item>
                      <title>%(item_title)s</title>
                      <author>%(item_author)s</author>
                      <pubDate>%(item_pubdate)s</pubDate>
                      <description>%(item_description)s</description>
                      <link>%(item_link)s</link>
                      <media:group>
                          <media:thumbnail url='%(item_thumbnail)s'/>
                          <media:content url='%(item_url)s' duration='%(item_duration)s' width='%(item_width)s' height='%(item_height)s' lang='%(item_lang)s'/>
                      </media:group>
                      <rating>%(item_rating)s</rating>
                  </item>""" , "end_directory" : """
              </directory>""" , 'end_channel' : """
      </channel>""" , 'end_rss' : """
  </rss>
  """ , }