def as_album(self): album_struct = self.__link_interface.as_album(self.__link_struct) if album_struct is not None: ai = _album.AlbumInterface() ai.add_ref(album_struct) return album.Album(album_struct)
def album(self, index): album_struct = self.__toplistbrowse_interface.album( self.__toplistbrowse_struct, index) if album_struct is not None: ai = _album.AlbumInterface() ai.add_ref(album_struct) return album.Album(album_struct)
def album(self, index): #Increment the refcount so it doesn't get stolen from us album_struct = self.__search_interface.album(self._search_struct, index) if album_struct is not None: ai = _album.AlbumInterface() ai.add_ref(album_struct) return album.Album(album_struct)
def __init__(self, album_struct): self.__album_struct = album_struct self.__album_interface = _album.AlbumInterface()