summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>2024-10-07 11:30:33 -0400
committerGitHub <noreply@github.com>2024-10-07 11:30:33 -0400
commitf6e09250cd8c8bf8df1b785381a3781b3169ac66 (patch)
tree1bb4cf1b820a5539de8a9f92aa2edf94e2504272
parent98f1e4170b8245de635fe091c9caca1d03464f52 (diff)
downloadinvidious-f6e09250cd8c8bf8df1b785381a3781b3169ac66.tar.gz
invidious-f6e09250cd8c8bf8df1b785381a3781b3169ac66.tar.bz2
invidious-f6e09250cd8c8bf8df1b785381a3781b3169ac66.zip
Use "LIVE" instead of "LIVE NOW" when parsing the live_now video badge
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
-rw-r--r--src/invidious/yt_backend/extractors.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/yt_backend/extractors.cr b/src/invidious/yt_backend/extractors.cr
index 7c89f6c4..4074de86 100644
--- a/src/invidious/yt_backend/extractors.cr
+++ b/src/invidious/yt_backend/extractors.cr
@@ -113,7 +113,7 @@ private module Parsers
item_contents["badges"]?.try &.as_a.each do |badge|
b = badge["metadataBadgeRenderer"]
case b["label"].as_s
- when "LIVE NOW"
+ when "LIVE"
badges |= VideoBadges::LiveNow
when "New"
badges |= VideoBadges::New