Exemplo n.º 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:]
Exemplo n.º 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:]
Exemplo n.º 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:]
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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:]
Exemplo n.º 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:]
Exemplo n.º 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:]