Skip to content

Commit

Permalink
meta: rename the field for ratings and age-restrictions into "warning"
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Oct 31, 2024
1 parent 0c99934 commit c42334e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/domains/youtube.com/youtube.video.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default {
likes: youtube_video_gdata.likeCount,
dislikes: youtube_video_gdata.dislikeCount,
views: youtube_video_gdata.viewCount,
rating: youtube_video_gdata.ytRating === 'ytAgeRestricted' ? 'age-restricted': null,
warning: youtube_video_gdata.ytRating === 'ytAgeRestricted' ? 'age': null,
site: "YouTube",
canonical: "https://www.youtube.com/watch?v=" + youtube_video_gdata.id,
author_url: "https://www.youtube.com/" + (youtube_video_gdata.channelId ? "channel/" + youtube_video_gdata.channelId : "user/" + youtube_video_gdata.uploader)
Expand Down

0 comments on commit c42334e

Please sign in to comment.