Improved imdbID search code