From 70f435e909a979c94d3baed1da1310ba6bc71e43 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 31 Aug 2019 16:24:13 -0400 Subject: [PATCH] Fix nillable for recommendedVideos --- 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 0ff13569..ef3f4d4b 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -1116,7 +1116,7 @@ def extract_player_config(body, html) rvs = extract_recommended(rvs) rvs.each_with_index do |rv, i| if !rv["view_count"]? - rv_params = rvs_params.select { |rv_params| rv_params["id"] == rv["id"] }[0]? + rv_params = rvs_params.select { |rv_params| rv_params["id"]? == (rv["id"]? || "") }[0]? if rv_params rvs[i]["short_view_count_text"] = rv_params["short_view_count_text"] else