Skip to content

YouTube Node: Playlist Creation privacyStatus Always Defaults to Private #16442

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

Open
gustavobretas opened this issue Jun 17, 2025 · 4 comments · May be fixed by #16451
Open

YouTube Node: Playlist Creation privacyStatus Always Defaults to Private #16442

gustavobretas opened this issue Jun 17, 2025 · 4 comments · May be fixed by #16451
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@gustavobretas
Copy link

Bug Description

When using the YouTube Node in n8n to create a new playlist, the privacyStatus of the created playlist always defaults to private, regardless of the value selected in the node's configuration.

To Reproduce

  1. Add a YouTube Node to an n8n workflow.
  2. Configure the node to perform the "Playlist: Create" operation.
  3. Set the "Privacy Status" option to anything other than 'private' (e.g., 'public' or 'unlisted').
  4. Execute the workflow.
  5. Observe the newly created playlist on YouTube.

Expected behavior

The privacyStatus of the created YouTube playlist should reflect the value configured in the n8n YouTube Node (e.g., 'public', 'unlisted', or 'private').

Operating System

Alpine, Docker Image: n8nio/n8n:1.98.1

n8n Version

1.98.1

Node.js Version

22.16.0

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jun 17, 2025

Hey @gustavobretas,

We have created an internal ticket to look into this which we will be tracking as "GHC-2607"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jun 17, 2025
@gustavobretas
Copy link
Author

It seems the issue stems from an incorrect path for the privacyStatus parameter within the request body.
In the file n8n/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts, line 515 currently sets the parameter as:

body.snippet.privacyStatus = options.privacyStatus as string;

However, according to the official YouTube Data API v3 documentation for playlist insertion (specifically, the status resource property), the correct path should be: body.status.privacyStatus

@Joffcom
Copy link
Member

Joffcom commented Jun 17, 2025

Sounds like you have a fix as well, If you want to add some tests to it feel free to open a PR with it.

gustavobretas added a commit to gustavobretas/n8n that referenced this issue Jun 17, 2025
…privacy

Fix(Youtube Node) fix(Youtube Node) Align playlist creation test with privacyStatus fix n8n-io#16442
@gustavobretas
Copy link
Author

Hey @Joffcom,

Thanks for the encouragement! I've gone ahead and adjusted the tests for this, and they're all passing now:

Image

If you could take a look at the PR whenever you have a moment, I'd really appreciate it!

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants