sns-sdks / python-youtube

A simple Python wrapper for YouTube Data API :sparkles: :cake: :sparkles: .
https://sns-sdks.github.io/python-youtube/
MIT License
313 stars 47 forks source link

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

Open vetsinen opened 1 year ago

vetsinen commented 1 year ago

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?

MerleLiuKun commented 1 year ago

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