Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

11.0.1 playlist.info.is_editable is suddenly undefined for custom playlists #800

Open
4 tasks done
dnicolson opened this issue Nov 13, 2024 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@dnicolson
Copy link
Contributor

Steps to reproduce

  1. Call playlist.removeVideos for a custom playlsit

Failure Logs

This playlist cannot be edited.

Expected behavior

The playlist.info.is_editable value to be a boolean.

Current behavior

The playlist.info.is_editable value is undefined here:

if (!playlist.info.is_editable)

Version

Default

Anything else?

This looks to be server-side issue as the isEditable property is defined in ytInitialData:

ytInitialData.contents.twoColumnBrowseResultsRenderer.tabs[0].tabRenderer.content.sectionListRenderer.contents[0].itemSectionRenderer.contents[0].playlistVideoListRenderer.isEditable

However, the following still does work to remove videos from a playlist:

const body = {
  playlist_id: playlistId,
  actions: videosToRemove.map((video) => ({
    action: 'ACTION_REMOVE_VIDEO',
    set_video_id: video.setVideoId,
  })),
}

await youtube.actions.execute('/browse/edit_playlist', body)

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@dnicolson dnicolson added the bug Something isn't working label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant