示例#1
0
    def artist(self, index):
        artist_struct = self.__toplistbrowse_interface.artist(
            self.__toplistbrowse_struct, index)

        if artist_struct is not None:
            ai = _artist.ArtistInterface()
            ai.add_ref(artist_struct)
            return artist.Artist(artist_struct)
示例#2
0
    def artist(self):
        #Increment the refcount so it doesn't get stolen from us
        artist_struct = self.__album_interface.artist(self.__album_struct)

        if artist_struct is not None:
            ai = _artist.ArtistInterface()
            ai.add_ref(artist_struct)
            return artist.Artist(artist_struct)