From 91f83952223a6a3b25268955b3fca6c6cf562fac Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Sun, 28 Nov 2021 23:37:27 +0100 Subject: [PATCH] Typo: missing '?' when looking for key in dislikes_button Co-authored-by: Matthew McGarvey --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index d04c6ecb..c9f6626a 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -914,7 +914,7 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_ .try &.["toggleButtonRenderer"] if dislikes_button - dislikes_txt = (dislikes_button["defaultText"] || dislikes_button["toggledText"]?) + dislikes_txt = (dislikes_button["defaultText"]? || dislikes_button["toggledText"]?) .try &.dig?("accessibility", "accessibilityData", "label") dislikes = dislikes_txt.as_s.gsub(/\D/, "").to_i64? if dislikes_txt