コード例 #1
0
ファイル: link.py プロジェクト: CHATBOTSITE/repository-1
    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)
コード例 #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)
コード例 #3
0
ファイル: search.py プロジェクト: CHATBOTSITE/repository-1
 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)
コード例 #4
0
ファイル: album.py プロジェクト: CHATBOTSITE/repository-1
 def __init__(self, album_struct):
     self.__album_struct = album_struct
     self.__album_interface = _album.AlbumInterface()