示例#1
0
 def get_albums(self):
     """
     Retrieves all the albums by the artist
     :return: List. Albums published by the artist
     """
     return itunespy.lookup(id=self.artist_id,
                            entity=itunespy.entities['album'])[1:]
示例#2
0
 def get_movies(self):
     """
     Retrieves all the movies published by the artist
     :return: List. Movies published by the artist
     """
     return itunespy.lookup(id=self.artist_id,
                            entity=itunespy.entities['movie'])[1:]
示例#3
0
 def get_books(self):
     """
     Retrieves all the books published by the artist
     :return: List. Books published by the artist
     """
     return itunespy.lookup(id=self.artist_id,
                            entity=itunespy.entities['ebook'])[1:]
示例#4
0
 def get_tracks(self):
     """
     Retrieves all the tracks of the album if they haven't been retrieved yet
     :return: List. Tracks of the current album
     """
     if not self._track_list:
         tracks = itunespy.lookup(id=self.collection_id, entity=itunespy.entities['song'])[1:]
         for track in tracks:
             self._track_list.append(track)
     return self._track_list
示例#5
0
 def get_tracks(self):
     """
     Retrieves all the tracks of the album if they haven't been retrieved yet
     :return: List. Tracks of the current album
     """
     if not self._track_list:
         tracks = itunespy.lookup(id=self.collection_id,
                                  entity=itunespy.entities['song'])[1:]
         for track in tracks:
             self._track_list.append(track)
     return self._track_list
示例#6
0
 def get_movies(self):
     """
     Retrieves all the movies published by the artist
     :return: List. Movies published by the artist
     """
     return itunespy.lookup(id=self.artist_id, entity=itunespy.entities['movie'])[1:]
示例#7
0
 def get_books(self):
     """
     Retrieves all the books published by the artist
     :return: List. Books published by the artist
     """
     return itunespy.lookup(id=self.artist_id, entity=itunespy.entities['ebook'])[1:]
示例#8
0
 def get_albums(self):
     """
     Retrieves all the albums by the artist
     :return: List. Albums published by the artist
     """
     return itunespy.lookup(id=self.artist_id, entity=itunespy.entities["album"])[1:]