def search_playlist(self, playlist_name, quiet=False, limit=9):
        """Search playlist by playlist name.

        :params playlist_name: playlist name.
        :params quiet: automatically select the best one.
        :params limit: playlist count returned by weapi.
        :return: a Playlist object.
        """

        result = self.search(playlist_name, search_type=1000, limit=limit)

        if result['result']['playlistCount'] <= 0:
            LOG.warning('Playlist %s not existed!', playlist_name)
            raise SearchNotFound('playlist {} not existed'.format(playlist_name))
        else:
            playlists = result['result']['playlists']
            if quiet:
                playlist_id, playlist_name = playlists[0]['id'], playlists[0]['name']
                playlist = Playlist(playlist_id, playlist_name)
                return playlist
            else:
                return self.display.select_one_playlist(playlists)
def search_playlist ( self , playlist_name , quiet = False , limit = 9 ) : result = self . search ( playlist_name , search_type = 1000 , limit = limit ) if result [ 'result' ] [ 'playlistCount' ] <= 0 : LOG . warning ( 'Playlist %s not existed!' , playlist_name ) raise SearchNotFound ( 'playlist {} not existed' . format ( playlist_name ) ) else : playlists = result [ 'result' ] [ 'playlists' ] if quiet : playlist_id , playlist_name = playlists [ 0 ] [ 'id' ] , playlists [ 0 ] [ 'name' ] playlist = Playlist ( playlist_id , playlist_name ) return playlist else : return self . display . select_one_playlist ( playlists )
Search playlist by playlist name.

        :params playlist_name: playlist name.
        :params quiet: automatically select the best one.
        :params limit: playlist count returned by weapi.
        :return: a Playlist object.