将新创建的视频添加到播放列表时可能出现错误

编程入门 行业动态 更新时间:2024-10-12 03:16:28
本文介绍了将新创建的视频添加到播放列表时可能出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

最近,一个脚本在尝试将新创建的 youtube 视频添加到播放列表时报告失败.

As of recently, a script has been reporting failures when trying to add a newly created youtube video to a playlist.

流程非常简单:

URL being requested: POST https://www.googleapis/upload/youtube/v3/videos?uploadType=resumable&alt=json&part=status%2Csnippet
Video id 'ABC123' was successfully uploaded.
Adding ABC123 to playlist MyPlaylistId
URL being requested: POST https://www.googleapis/youtube/v3/playlistItems?alt=json&part=snippet
Payload:
{"snippet": {"resourceId": {"kind": "youtube#video", "videoId": "ABC123"}, "playlistId": "MyPlaylistId"}}
Response:
{'status': '404', 'content-length': '226', 'x-xss-protection': '0', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'vary': 'Origin, X-Origin, Referer', 'server': 'scaffolding on HTTPServer2', '-content-encoding': 'gzip', 'cache-control': 'private', 'date': 'Thu, 17 Sep 2020 12:13:36 GMT', 'x-frame-options': 'SAMEORIGIN', 'alt-svc': 'h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"', 'content-type': 'application/json; charset=UTF-8'}
Response content:
{
 "error": {
   "code": 404,
   "message": "Video not found.",
   "errors": [
     {
       "message": "Video not found.",
       "domain": "youtube.playlistItem",
       "reason": "videoNotFound"
     }
   ]
  }
}

现在,有趣的是视频实际上成功添加到播放列表中.我已经测试了几次,我得到了相同的结果.

Now, the funny part is that the video is actually successfully added to the playlist. I have tested it several times and I get the same result.

谁能确认这个错误?

推荐答案

这似乎确实是一个错误,但据我所知,发布有关 YouTube API 错误的网站是:问题跟踪器1.

It seems indeed a bug, but, as far as I know, the site for post about bugs with the YouTube APIs is: Issue Tracker1.

以下链接允许您在问题跟踪器.

The following link allows you create an entry on Issue Tracker.

值得首先检查是否存在与您面临类似问题的条目,如果您在那里找到相关条目,请星标";如果您愿意,请关注该问题并跟踪更新.

It is worth check first if entries exists with the similar issue you're facing and if you find related entries there, please "star" that issue to draw attention to it and track updates, if you'd like.

1 问题跟踪器显示在 与 Stack Overflow 一起)/v3" rel="nofollow noreferrer">YouTube 数据 API 网站.

1 Issue Tracker is shown (alongside Stack Overflow) at the end of the page of YouTube Data API website.

这篇关于将新创建的视频添加到播放列表时可能出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-23 16:31:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1044341.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:播放列表   出现错误   视频

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!