def getEpisodeId(path, conn):
    """
        Return the show id given its name. (Database query)
        :param path:
        :param conn:
        :return: id_episode (integer)
    """
    cur = conn.cursor()
    cur.execute("SELECT id_episode FROM episode WHERE path=?", (path,))
    id_episode = cur.fetchone()[0]
    return id_episode