'Translate a movieID in an imdbID.
If not in the database, try an Exact Primary Title search on IMDb;
return None if it\'s unable to get the imdbID.'

def get_imdbMovieID(self, movieID):

    try:
        movie = Title.get(movieID)
    except NotFoundError:
        return None
    imdbID = movie.imdbID
    if (imdbID is not None):
        return ('%07d' % imdbID)
    m_dict = get_movie_data(movie.id, self._kind)
    titline = build_title(m_dict, ptdf=0)
    imdbID = self.title2imdbID(titline, m_dict['kind'])
    if ((imdbID is not None) and (not isinstance(imdbID, list))):
        try:
            movie.imdbID = int(imdbID)
        except:
            pass
    return imdbID
