'Get show ID by show name
:param showname:
:return:'

def _get_showid_by_showname(self, showname):

    if (showname is not None):
        rows = self.mydb.select('SELECT    show_id    FROM    tv_shows    WHERE    show_name    =    ?', [showname])
        if (len(rows) == 1):
            return rows[0]['show_id']
    return (-1)
