Exemple #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:]
Exemple #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:]
Exemple #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:]
Exemple #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
Exemple #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
Exemple #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:]
 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:]
 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:]