-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YouTube video view count: "invalid response data" #7373
Comments
Thank you for the report! Looks like Youtube have changed their API response structure, as it now includes objects under the https://www.googleapis.com/youtube/v3/videos?part=statistics&id=abBdk8bSPKU {
"kind": "youtube#videoListResponse",
"etag": "oolaHBsncBupkZFd7QlP8ZRIPKI",
"items": [
{
"kind": "youtube#video",
"etag": "pl3CDI4TqeRo5CsjDhJrUX5NAhE",
"id": "abBdk8bSPKU",
"statistics": {
"viewCount": "400",
"likeCount": "7",
"favoriteCount": "0",
"commentCount": "0"
}
}
],
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 1
}
} shields/services/youtube/youtube-base.js Lines 10 to 31 in 49f49f1
I'm going to guess that Youtube has either dropped the dislike counts outright, or has switched to eliding the field if the value is zero, and we'll need to account for that, both in the schema linked above and then some handling of that scenario in the likes badge |
Youtube video view count is currently broken for the shield badge (see badges/shields#7373). I will remove it for now. Seeh deleted one of its linked videos, I replaced with a new one.
Are you experiencing an issue with...
shields.io
🐞 Description
All YouTube video view counts shows
invalid response data
in a field of number of views.🔗 Link to the badge
💡 Possible Solution
No response
The text was updated successfully, but these errors were encountered: