Skip to content

fix(Youtube Node): Correct playlist creation privacyStatus path #16451

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
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

gustavobretas
Copy link

Summary

The privacyStatus for YouTube playlist creation was incorrectly mapped to body.snippet.privacyStatus. This commit
corrects the path to body.status.privacyStatus as per YouTube Data API v3 documentation, ensuring the
privacy setting selected in the node is respected.

Related Linear tickets, Github issues, and Community forum posts

resolves #16442

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@CLAassistant
Copy link

CLAassistant commented Jun 17, 2025

CLA assistant check
All committers have signed the CLA.

@Joffcom
Copy link
Member

Joffcom commented Jun 17, 2025

Hey @gustavobretas

Don't forget to add a test for this to make sure the field is set.

@Joffcom Joffcom added community Authored by a community member tests-needed This PR needs additional tests labels Jun 17, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic found 1 issue across 1 file. Review it in cubic.dev

React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai to give specific feedback.

@@ -503,16 +503,17 @@ export class YouTube implements INodeType {
snippet: {
title,
},
status: {},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a status object alone does not have any effect because the request’s part parameter is still set to 'snippet'. The YouTube API will silently ignore the status field unless 'status' is also included in qs.part, so privacyStatus will still not be applied.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out! That was a critical detail. The part parameter in the request query has been updated to include 'status' in commit 1410c2f to ensure the privacyStatus is properly processed by the YouTube API.

@gustavobretas
Copy link
Author

Hey @gustavobretas

Don't forget to add a test for this to make sure the field is set.

Hey @Joffcom,

Thanks for bringing that up! I've included the test updates in a separate commit. Let me know if everything looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member tests-needed This PR needs additional tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

YouTube Node: Playlist Creation privacyStatus Always Defaults to Private
3 participants