'This searches TheTVDB.com for the series name,
If a custom_ui UI is configured, it uses this to select the correct
series. If not, and interactive == True, ConsoleUI is used, if not
BaseUI is used to select the first result.'

def _getSeries(self, series):

    allSeries = self.search(series)
    if (not allSeries):
        log().debug('Series    result    returned    zero')
        raise tvdb_shownotfound('Show    search    returned    zero    results    (cannot    find    show    on    TVDB)')
    if (not isinstance(allSeries, list)):
        allSeries = [allSeries]
    if (self.config['custom_ui'] is not None):
        log().debug(('Using    custom    UI    %s' % repr(self.config['custom_ui'])))
        CustomUI = self.config['custom_ui']
        ui = CustomUI(config=self.config)
    elif (not self.config['interactive']):
        log().debug('Auto-selecting    first    search    result    using    BaseUI')
        ui = BaseUI(config=self.config)
    else:
        log().debug('Interactively    selecting    show    using    ConsoleUI')
        ui = ConsoleUI(config=self.config)
    return ui.selectSeries(allSeries)
