def _parse_multiple_tracks(self, track_datasets): tracks = [] for dataset in track_datasets or []: try: tracks.append(parse_track(dataset, self)) except (ValueError, KeyError) as exc: logger.info("Beets - Failed to parse track data: %s", exc) return [track for track in tracks if track]
def _parse_multiple_tracks(self, track_datasets): tracks = [] for dataset in (track_datasets or []): try: tracks.append(parse_track(dataset, self)) except (ValueError, KeyError) as exc: logger.info('Beets - Failed to parse track data: %s', exc) return [track for track in tracks if track]
def get_track(self, track_id): return parse_track(self._get("/item/%s" % track_id), self)
def get_track(self, track_id): return parse_track(self._get('/item/%s' % track_id), self)