def get(self, album, extra):
        if not album.mb_releasegroupid:
            return

        response = self.request(
            self.API_ALBUMS + album.mb_releasegroupid,
            headers={'api-key': self.PROJECT_KEY,
                     'client-key': self.client_key})

        try:
            data = response.json()
        except ValueError:
            self._log.debug(u'fanart.tv: error loading response: {}',
                            response.text)
            return

        if u'status' in data and data[u'status'] == u'error':
            if u'not found' in data[u'error message'].lower():
                self._log.debug(u'fanart.tv: no image found')
            elif data[u'error message'].lower() in u'api key':
                self._log.warning(u'fanart.tv: Invalid API key given, please '
                                  u'enter a valid one in your config file.')
            else:
                self._log.debug(u'fanart.tv: error on request: {}',
                                data[u'error message'])
            return

        matches = []
        # can there be more than one releasegroupid per response?
        for mbid, art in data.get(u'albums', dict()).items():
            # there might be more art referenced, e.g. cdart, and an albumcover
            # might not be present, even if the request was succesful
            if album.mb_releasegroupid == mbid and u'albumcover' in art:
                matches.extend(art[u'albumcover'])
            # can this actually occur?
            else:
                self._log.debug(u'fanart.tv: unexpected mb_releasegroupid in '
                                u'response!')

        matches.sort(key=lambda x: x[u'likes'], reverse=True)
        for item in matches:
            # fanart.tv has a strict size requirement for album art to be
            # uploaded
            yield self._candidate(url=item[u'url'],
                                  match=Candidate.MATCH_EXACT,
                                  size=(1000, 1000))
dataset/ETHPy150Open beetbox/beets/beetsplug/fetchart.py/FanartTV.get/swapped operands of `in`