예제 #1
0
 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]
예제 #2
0
 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]
예제 #3
0
 def get_album(self, album_id):
     return parse_album(self._get("/album/%s" % album_id), self)
예제 #4
0
 def get_album(self, album_id):
     return parse_album(self._get('/album/%s' % album_id), self)