Python youtubeupload无法上载缩略图,即使我的帐户已授权

2024-04-25 13:50:12 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试用pythonyoutube上传工具上传一个带有缩略图的视频。视频上传得很好,但是上传后我收到了这样的信息:

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."
 }
}

现在这很奇怪,因为我的帐户已验证可以上载自定义缩略图:

Account Features

我甚至测试了手动上传带有缩略图的视频,但它没有任何问题。我也更新了youtube的最新版本,但它就是不起作用。在

有人知道这里发生了什么事吗?在


Tags: theclientjsonmessage视频youtubevideocredentials
2条回答

单击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."

之后,再次尝试运行您的代码。在

好吧,我现在意识到了这个问题,因为当我进行帐户验证时,我登录了一个不同的google帐户。在

相关问题 更多 >

    热门问题