gpt4 book ai didi

youtube - 如何在 9 月 12 日之后获取稍后观看的播放列表详细信息?

转载 作者:行者123 更新时间:2023-12-03 20:54:02 26 4
gpt4 key购买 nike

今天,在 YouTube's revision history页面上说

The channel resource's contentDetails.relatedPlaylists.watchHistory and contentDetails.relatedPlaylists.watchLater properties are only visible to an authorized user retrieving data about the user's own channel. After September 12, 2016, the contentDetails.relatedPlaylists.watchHistory will return a value of HL and the contentDetails.relatedPlaylists.watchLater property will return a value of WL for all channels.

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.



我有一个 (ok-working) extension现在唯一的功能是显示 YouTube 播放列表的总时间长度。现在您必须刷新页面(任何带有播放列表的页面)才能显示长度。我用 playlists.listplaylistItems.list获取播放列表中每个视频的长度详细信息, you can view the source here . (顺便说一句,你应该完全评论我的代码质量,我喜欢反馈)正如你从修订版中看到的,这个扩展在 9 月 12 日之后将无法用于稍后观看的播放列表。

无论如何,我的扩展程序最有用的情况是查看稍后浏览播放列表需要多长时间。目前,我知道我需要 4 天 17 小时 7 分 10 秒才能观看稍后观看播放列表中的所有 365 个视频。 9 月 12 日之后,我将无法知道这些信息。

那么我应该如何获得有关稍后观看播放列表的信息?我打了哪个资源?下一个被 YouTube 聘用在其后端工作的合理行动方案是将观看播放列表的总时间添加到 playlist.list 中吗? ?

最佳答案

2016 年 9 月 15 日之后,这些数据将无法通过 YouTube API 服务获得。

关于youtube - 如何在 9 月 12 日之后获取稍后观看的播放列表详细信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38908308/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com