Youtube 数据 API v3 PlaylistItems 更新不适用于稍后观看播放列表
Youtube Data API v3 PlaylistItems update not working for Watch Later playlists
最近,youtube.playlistItems.list 在列出 watchLater 播放列表时没有获取适合 youtube.playlistItems.update 的播放列表项目。它非常适合不在频道相关播放列表类别下的播放列表。 (例如,历史、收藏、喜欢等)
我的列表回复如下所示:
{
"items": [
{
"id": "V0xWWlh5N2JrM0JSTjAtcDJVUmdjc3JRLjZCM0UwMDFFNUU3NzYzNjc=",
"snippet": {
"publishedAt": "2016-03-21T19:04:22.000Z",
"title": "One Word - Episode 38: Skin Tone (Black Women)",
.
.
.
"channelTitle": "Ryan Carter",
"playlistId": "WLVZXy7bk3BRN0-p2URgcsrQ",
"position": 0,
"resourceId": {
"kind": "youtube#video",
"videoId": "0gYgzN6B0y4"
}
}
},
但是当我使用这些值时:
PUT https://www.googleapis.com/youtube/v3/playlistItems?part=snippet%2Cid&key={YOUR_API_KEY}
{
"id": "V0xWWlh5N2JrM0JSTjAtcDJVUmdjc3JRLjZCM0UwMDFFNUU3NzYzNjc=",
"snippet": {
"playlistId": "WLVZXy7bk3BRN0-p2URgcsrQ",
"resourceId": {
"kind": "youtube#video",
"videoId": "0gYgzN6B0y4"
}
}
}
我得到:
404 null
- Show headers -
{
"error": {
"errors": [
{
"domain": "youtube.playlistItem",
"reason": "playlistItemNotFound",
"message": "Playlist item not found."
}
],
"code": 404,
"message": "Playlist item not found."
}
}
- 只有我吗?
- 是否Google 阻止了“稍后观看”播放列表的更新?
- 服务有问题吗?
看起来 "bug" 只是过渡期的一部分,YouTube 计划取消通过那里获取“稍后观看”和“观看历史记录”播放列表的功能 API。正如 Tym 在此处评论的 "bug" is/was 所评论的那样:https://code.google.com/p/gdata-issues/issues/detail?id=8145 .
TLDR:
"Requests to retrieve playlist details (playlists.list) for a channel's watch history or watch later playlist will return an empty list after September 12, 2016. Requests to retrieve playlist items (playlistItems.list) in either of those playlists will also return an empty list after that time. This is true for the new values, HL and WL, as well as for any watch history or watch later playlist IDs that your API Client may have already stored."
https://developers.google.com/youtube/v3/revision_history#september-15-2016
最近,youtube.playlistItems.list 在列出 watchLater 播放列表时没有获取适合 youtube.playlistItems.update 的播放列表项目。它非常适合不在频道相关播放列表类别下的播放列表。 (例如,历史、收藏、喜欢等)
我的列表回复如下所示:
{
"items": [
{
"id": "V0xWWlh5N2JrM0JSTjAtcDJVUmdjc3JRLjZCM0UwMDFFNUU3NzYzNjc=",
"snippet": {
"publishedAt": "2016-03-21T19:04:22.000Z",
"title": "One Word - Episode 38: Skin Tone (Black Women)",
.
.
.
"channelTitle": "Ryan Carter",
"playlistId": "WLVZXy7bk3BRN0-p2URgcsrQ",
"position": 0,
"resourceId": {
"kind": "youtube#video",
"videoId": "0gYgzN6B0y4"
}
}
},
但是当我使用这些值时:
PUT https://www.googleapis.com/youtube/v3/playlistItems?part=snippet%2Cid&key={YOUR_API_KEY}
{
"id": "V0xWWlh5N2JrM0JSTjAtcDJVUmdjc3JRLjZCM0UwMDFFNUU3NzYzNjc=",
"snippet": {
"playlistId": "WLVZXy7bk3BRN0-p2URgcsrQ",
"resourceId": {
"kind": "youtube#video",
"videoId": "0gYgzN6B0y4"
}
}
}
我得到:
404 null
- Show headers -
{
"error": {
"errors": [
{
"domain": "youtube.playlistItem",
"reason": "playlistItemNotFound",
"message": "Playlist item not found."
}
],
"code": 404,
"message": "Playlist item not found."
}
}
- 只有我吗?
- 是否Google 阻止了“稍后观看”播放列表的更新?
- 服务有问题吗?
看起来 "bug" 只是过渡期的一部分,YouTube 计划取消通过那里获取“稍后观看”和“观看历史记录”播放列表的功能 API。正如 Tym 在此处评论的 "bug" is/was 所评论的那样:https://code.google.com/p/gdata-issues/issues/detail?id=8145 .
TLDR:
"Requests to retrieve playlist details (playlists.list) for a channel's watch history or watch later playlist will return an empty list after September 12, 2016. Requests to retrieve playlist items (playlistItems.list) in either of those playlists will also return an empty list after that time. This is true for the new values, HL and WL, as well as for any watch history or watch later playlist IDs that your API Client may have already stored."
https://developers.google.com/youtube/v3/revision_history#september-15-2016