summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>2024-08-24 21:04:22 -0400
committerChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>2024-09-30 22:02:57 -0400
commit98f1e4170b8245de635fe091c9caca1d03464f52 (patch)
tree58797310c37166c4ca5fc5a0e3b68d6ca6f27f04 /src
parentb384133dc9656af6d4d433cb2ddc8184bc95c895 (diff)
downloadinvidious-98f1e4170b8245de635fe091c9caca1d03464f52.tar.gz
invidious-98f1e4170b8245de635fe091c9caca1d03464f52.tar.bz2
invidious-98f1e4170b8245de635fe091c9caca1d03464f52.zip
Rename CCommons to ClosedCaptions
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/serialized_yt_data.cr4
-rw-r--r--src/invidious/yt_backend/extractors.cr2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/helpers/serialized_yt_data.cr b/src/invidious/helpers/serialized_yt_data.cr
index 8f57954a..1fef5f93 100644
--- a/src/invidious/helpers/serialized_yt_data.cr
+++ b/src/invidious/helpers/serialized_yt_data.cr
@@ -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
diff --git a/src/invidious/yt_backend/extractors.cr b/src/invidious/yt_backend/extractors.cr
index 36f2dc4a..7c89f6c4 100644
--- a/src/invidious/yt_backend/extractors.cr
+++ b/src/invidious/yt_backend/extractors.cr
@@ -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