Python youtube-upload - Can't upload thumbnail even though my account is authorised

一曲冷凌霜 提交于 2019-12-25 07:47:47

问题


I'm trying to upload a video with a thumbnail using the python youtube-upload tool. The video uploads just fine but after uploading I get this message:

Using client secrets: D:\Programs\Python35\share/youtube_upload/client_secrets.json
Using credentials file: C:\Users\Name\.youtube-upload-credentials.json
Using category: Education (id=27)
Start upload: render\video\DCCA.mp4
Video URL: https://www.youtube.com/watch?v=*censored*
[RequestError] Server response: {
 "error": {
  "errors": [
   {
    "domain": "youtube.thumbnail",
    "reason": "forbidden",
    "message": "The authenticated user doesnt have permissions to upload and set custom video thumbnails.",
    "locationType": "header",
    "location": "Authorization"
   }
  ],
  "code": 403,
  "message": "The authenticated user doesnt have permissions to upload and set custom video thumbnails."
 }
}

Now this is strange because my account is verified to upload custom thumbnails:

Account Features

I even tested manually uploading a video with the thumbnail but it works without any problems. I also updated youtube-upload to the latest version but it just won't work.

Does anyone know whats going on here?


回答1:


Check if your account is verified by clicking this verify link:

"Create custom video thumbnail If your account is verified or you have live streaming access, you may have the ability to upload custom thumbnails for your video uploads."

After that, try running your code again.




回答2:


OK I've realised the problem now and it was because when I did the account verification I was logged into a different google account .________.



来源:https://stackoverflow.com/questions/41933948/python-youtube-upload-cant-upload-thumbnail-even-though-my-account-is-authori

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!