def playlist(self, index):
        playlist_struct = self.__search_interface.playlist(
            self.__search_interface, index)

        if playlist_struct is not None:
            """
            Do not increment references here, as the official docs say
            that the reference is owned by the caller.
            """
            return playlist.Playlist(playlist_struct)
Exemple #2
0
 def starred_create(self):
     return playlist.Playlist(
         self.__session_interface.starred_create(self.__session_struct))
Exemple #3
0
 def starred_for_user_create(self, canonical_username):
     return playlist.Playlist(
         self.__session_interface.starred_for_user_create(
             self.__session_struct, canonical_username))
Exemple #4
0
 def inbox_create(self):
     return playlist.Playlist(
         self.__session_interface.inbox_create(self.__session_struct))