'Perform Rotten Tomatoes lookup for entry.
:param entry: Entry instance
:param search_allowed: Allow fallback to search
:param key: optionally specify an API key to use
:raises PluginError: Failure reason'

def lookup(self, entry, search_allowed=True, key=None):

    if (not key):
        key = (self.key or API_KEY)
    movie = lookup_movie(smart_match=entry[u'title'], rottentomatoes_id=entry.get(u'rt_id', eval_lazy=False), only_cached=(not search_allowed), api_key=key)
    log.debug((u'Got    movie:    %s' % movie))
    entry.update_using_map(self.field_map, movie)
    if (not entry.get(u'imdb_id', eval_lazy=False)):
        for alt_id in movie.alternate_ids:
            if (alt_id.name == u'imdb'):
                entry[u'imdb_id'] = (u'tt' + alt_id.id)
                break
