'Get the best matching show id for `series`.
First search in the result of :meth:`_get_show_ids` and fallback on a search with :meth:`_search_show_id`
:param str series: series of the episode.
:param str country_code: the country in which teh show is aired.
:return: the show id, if found.
:rtype: int or None'

def get_show_id(self, series, country_code=None):

    series_sanitized = sanitize(series).lower()
    show_ids = self._get_show_ids()
    show_id = None
    if ((not show_id) and country_code):
        logger.debug(u'Getting    show    id    with    country')
        show_id = show_ids.get(u'{0}    {1}'.format(series_sanitized, country_code.lower()))
    if (not show_id):
        logger.debug(u'Getting    show    id')
        show_id = show_ids.get(series_sanitized)
    if (not show_id):
        logger.warning(u'Series    not    found    in    show    ids')
        show_id = self._search_show_id(series)
    return show_id
