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

how to fix a problem "Set default language to updating localizations"? #155

Open
vetsinen opened this issue Mar 29, 2023 · 1 comment
Open

Comments

@vetsinen
Copy link

vetsinen commented Mar 29, 2023

i'm trying to create a playlist programatically
insert = client.playlists.insert({"title":"playlist title","description":"pl descr"})
but api provides error:
pyyoutube.error.PyYouTubeException: YouTubeException(status_code=400,message=Set default language to updating localizations.)
where can i set this default language?

@vetsinen vetsinen changed the title how to fix a problem "Set default language to updating localizations" how to fix a problem "Set default language to updating localizations"? Mar 29, 2023
@MerleLiuKun
Copy link
Member

Sorry for late reply

As for the docs says

image

You need to set default language.

Refer: https://developers.google.com/youtube/v3/docs/playlists/insert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants