def _parse_multiple_albums(self, album_datasets): albums = [] for dataset in album_datasets or []: try: albums.append(parse_album(dataset, self)) except (ValueError, KeyError) as exc: logger.info("Beets - Failed to parse album data: %s", exc) return [album for album in albums if album]
def _parse_multiple_albums(self, album_datasets): albums = [] for dataset in (album_datasets or []): try: albums.append(parse_album(dataset, self)) except (ValueError, KeyError) as exc: logger.info('Beets - Failed to parse album data: %s', exc) return [album for album in albums if album]
def get_album(self, album_id): return parse_album(self._get("/album/%s" % album_id), self)
def get_album(self, album_id): return parse_album(self._get('/album/%s' % album_id), self)