Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 def __init__(self, album_struct):
     self.__album_struct = album_struct
     self.__album_interface = _album.AlbumInterface()