Anonymous
Видео на YouTube не подходит из созданного плейлиста
Сообщение
Anonymous » 07 авг 2025, 22:55
У меня есть программа Python, которая создает случайные плейлисты из моих подписок, которые я играю с YouTube Music. Это работает просто отлично.
Некоторые видео, которые добавляются в списки воспроизведения, не могут быть воспроизводимыми, и я хочу выяснить, как протестировать их в программе, прежде чем они попадут в список воспроизведения. Части: < /p>
ContentDetails, ID, LivestreamingDetails, Localizations, PlateProductPlacemationDetails, игрок, записывающие данные, фрагмент, статистика, статус, тематические данные < /p>
, и получил этот результат: (должен был отрезать китайцы, чтобы получить его, чтобы отправить) < /p>
, и получил: (должны были вырубить китайский язык)
Код: Выделить всё
{
"kind": "youtube#videoListResponse",
"etag": "zsqqOTGDedIqdo5o5kiqjG7uQsk",
"items": [
{
"kind": "youtube#video",
"etag": "t9kElYNA6IX_5ftRajSbHWjLiZg",
"id": "5AxTF5cuYPM",
"snippet": {
"publishedAt": "2020-05-08T13:00:03Z",
"channelId": "UCOYbuyJtfv9ks4lvlv-VuBg",
"title": chopped out,
"description": chopped out,
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/vi/5AxTF5cuYPM/default.jpg",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/vi/5AxTF5cuYPM/mqdefault.jpg",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/vi/5AxTF5cuYPM/hqdefault.jpg",
"width": 480,
"height": 360
},
"standard": {
"url": "https://i.ytimg.com/vi/5AxTF5cuYPM/sddefault.jpg",
"width": 640,
"height": 480
},
"maxres": {
"url": "https://i.ytimg.com/vi/5AxTF5cuYPM/maxresdefault.jpg",
"width": 1280,
"height": 720
}
},
"channelTitle": "蘇慧倫 TarcySu",
"categoryId": "22",
"liveBroadcastContent": "none",
"localized": {
"title": chopped out,
"description": chopped out
}
},
"contentDetails": {
"duration": "PT3M40S",
"dimension": "2d",
"definition": "hd",
"caption": "false",
"licensedContent": false,
"contentRating": {},
"projection": "rectangular"
},
"status": {
"uploadStatus": "processed",
"privacyStatus": "public",
"license": "youtube",
"embeddable": true,
"publicStatsViewable": true,
"madeForKids": false
},
"statistics": {
"viewCount": "2297",
"likeCount": "89",
"favoriteCount": "0",
"commentCount": "3"
},
"player": {
"embedHtml": "\u003ciframe width=\"480\" height=\"270\" src=\"//www.youtube.com/embed/5AxTF5cuYPM\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen\u003e\u003c/iframe\u003e"
},
"topicDetails": {
"topicCategories": [
"https://en.wikipedia.org/wiki/Entertainment",
"https://en.wikipedia.org/wiki/Music_of_Asia"
]
},
"recordingDetails": {},
"paidProductPlacementDetails": {
"hasPaidProductPlacement": false
}
}
],
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 1
}
}
Нигде в результатах я вижу все, что помешало бы видео, поэтому мне нечего проверить.
Подробнее здесь:
https://stackoverflow.com/questions/797 ... d-playlist
1754596538
Anonymous
У меня есть программа Python, которая создает случайные плейлисты из моих подписок, которые я играю с YouTube Music. Это работает просто отлично. Некоторые видео, которые добавляются в списки воспроизведения, не могут быть воспроизводимыми, и я хочу выяснить, как протестировать их в программе, прежде чем они попадут в список воспроизведения. Части: < /p> ContentDetails, ID, LivestreamingDetails, Localizations, PlateProductPlacemationDetails, игрок, записывающие данные, фрагмент, статистика, статус, тематические данные < /p> , и получил этот результат: (должен был отрезать китайцы, чтобы получить его, чтобы отправить) < /p> , и получил: (должны были вырубить китайский язык)[code]{ "kind": "youtube#videoListResponse", "etag": "zsqqOTGDedIqdo5o5kiqjG7uQsk", "items": [ { "kind": "youtube#video", "etag": "t9kElYNA6IX_5ftRajSbHWjLiZg", "id": "5AxTF5cuYPM", "snippet": { "publishedAt": "2020-05-08T13:00:03Z", "channelId": "UCOYbuyJtfv9ks4lvlv-VuBg", "title": chopped out, "description": chopped out, "thumbnails": { "default": { "url": "https://i.ytimg.com/vi/5AxTF5cuYPM/default.jpg", "width": 120, "height": 90 }, "medium": { "url": "https://i.ytimg.com/vi/5AxTF5cuYPM/mqdefault.jpg", "width": 320, "height": 180 }, "high": { "url": "https://i.ytimg.com/vi/5AxTF5cuYPM/hqdefault.jpg", "width": 480, "height": 360 }, "standard": { "url": "https://i.ytimg.com/vi/5AxTF5cuYPM/sddefault.jpg", "width": 640, "height": 480 }, "maxres": { "url": "https://i.ytimg.com/vi/5AxTF5cuYPM/maxresdefault.jpg", "width": 1280, "height": 720 } }, "channelTitle": "蘇慧倫 TarcySu", "categoryId": "22", "liveBroadcastContent": "none", "localized": { "title": chopped out, "description": chopped out } }, "contentDetails": { "duration": "PT3M40S", "dimension": "2d", "definition": "hd", "caption": "false", "licensedContent": false, "contentRating": {}, "projection": "rectangular" }, "status": { "uploadStatus": "processed", "privacyStatus": "public", "license": "youtube", "embeddable": true, "publicStatsViewable": true, "madeForKids": false }, "statistics": { "viewCount": "2297", "likeCount": "89", "favoriteCount": "0", "commentCount": "3" }, "player": { "embedHtml": "\u003ciframe width=\"480\" height=\"270\" src=\"//www.youtube.com/embed/5AxTF5cuYPM\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen\u003e\u003c/iframe\u003e" }, "topicDetails": { "topicCategories": [ "https://en.wikipedia.org/wiki/Entertainment", "https://en.wikipedia.org/wiki/Music_of_Asia" ] }, "recordingDetails": {}, "paidProductPlacementDetails": { "hasPaidProductPlacement": false } } ], "pageInfo": { "totalResults": 1, "resultsPerPage": 1 } } [/code] Нигде в результатах я вижу все, что помешало бы видео, поэтому мне нечего проверить. Подробнее здесь: [url]https://stackoverflow.com/questions/79729081/youtube-video-is-not-playable-from-a-created-playlist[/url]