Rename CCommons to ClosedCaptions

This commit is contained in:
ChunkyProgrammer 2024-08-24 21:04:22 -04:00
parent 60de5e91c0
commit e485773928
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ enum VideoBadges
EightK
VR180
VR360
CCommons
ClosedCaptions
end
struct SearchVideo
@ -113,7 +113,7 @@ struct SearchVideo
json.field "isVr180", self.badges.vr180?
json.field "isVr360", self.badges.vr360?
json.field "is3d", self.badges.three_d?
json.field "hasCaptions", self.badges.c_commons?
json.field "hasCaptions", self.badges.closed_captions?
end
end

View File

@ -128,7 +128,7 @@ private module Parsers
when "3D"
badges |= VideoBadges::ThreeD
when "CC"
badges |= VideoBadges::CCommons
badges |= VideoBadges::ClosedCaptions
when "Premium"
# TODO: Potentially available as item_contents["topStandaloneBadge"]["metadataBadgeRenderer"]
badges |= VideoBadges::Premium