def get_playlist_thorough(sp, name: str):
    """Search through the current user's playlists to find the one called :param name:, and return
    it if found.

    This will take longer than `get_playlist`, but it's more guaranteed to work (for playlists owned
    by the current user).
    """
    limit = 50
    offset = 0
    managed_pl = None
    playlists = sp.current_user_playlists(limit=limit, offset=offset)

    while not managed_pl and playlists:
        for pl in playlists['items']:
            if pl['name'] == name:
                managed_pl = pl
                break

        playlists = sp.next(playlists)

    return managed_pl