python-youtube icon indicating copy to clipboard operation
python-youtube copied to clipboard

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

Open vetsinen opened this issue 2 years ago • 1 comments

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 avatar Mar 29 '23 13:03 vetsinen

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

MerleLiuKun avatar Apr 06 '23 09:04 MerleLiuKun