mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-30 04:43:13 +00:00
Rename CCommons to ClosedCaptions
This commit is contained in:
parent
b384133dc9
commit
98f1e4170b
@ -8,7 +8,7 @@ enum VideoBadges
|
|||||||
EightK
|
EightK
|
||||||
VR180
|
VR180
|
||||||
VR360
|
VR360
|
||||||
CCommons
|
ClosedCaptions
|
||||||
end
|
end
|
||||||
|
|
||||||
struct SearchVideo
|
struct SearchVideo
|
||||||
@ -113,7 +113,7 @@ struct SearchVideo
|
|||||||
json.field "isVr180", self.badges.vr180?
|
json.field "isVr180", self.badges.vr180?
|
||||||
json.field "isVr360", self.badges.vr360?
|
json.field "isVr360", self.badges.vr360?
|
||||||
json.field "is3d", self.badges.three_d?
|
json.field "is3d", self.badges.three_d?
|
||||||
json.field "hasCaptions", self.badges.c_commons?
|
json.field "hasCaptions", self.badges.closed_captions?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ private module Parsers
|
|||||||
when "3D"
|
when "3D"
|
||||||
badges |= VideoBadges::ThreeD
|
badges |= VideoBadges::ThreeD
|
||||||
when "CC"
|
when "CC"
|
||||||
badges |= VideoBadges::CCommons
|
badges |= VideoBadges::ClosedCaptions
|
||||||
when "Premium"
|
when "Premium"
|
||||||
# TODO: Potentially available as item_contents["topStandaloneBadge"]["metadataBadgeRenderer"]
|
# TODO: Potentially available as item_contents["topStandaloneBadge"]["metadataBadgeRenderer"]
|
||||||
badges |= VideoBadges::Premium
|
badges |= VideoBadges::Premium
|
||||||
|
Loading…
Reference in New Issue
Block a user