예제 #1
0
 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]
예제 #2
0
 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]
예제 #3
0
 def get_track(self, track_id):
     return parse_track(self._get("/item/%s" % track_id), self)
예제 #4
0
 def get_track(self, track_id):
     return parse_track(self._get('/item/%s' % track_id), self)