'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 = []
    try:
        allSeries += self.search(series)
        if (not allSeries):
            raise tvdb_shownotfound
    except tvdb_shownotfound:
        for x in imdbpie.Imdb().search_for_title(series):
            if (x[u'title'].lower() == series.lower()):
                allSeries += self.search(imdbid=x[u'imdb_id'])
    if (not allSeries):
        sickrage.srCore.srLogger.debug(u'Series    result    returned    zero')
        raise tvdb_shownotfound(u'Show    search    returned    zero    results    (cannot    find    show    on    theTVDB)')
    ui = BaseUI(config=self.config)
    if (self.config[u'custom_ui'] is not None):
        ui = self.config[u'custom_ui'](config=self.config)
    return ui.selectSeries(allSeries, series)
