diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-08-31 16:24:13 -0400 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-08-31 16:24:13 -0400 |
| commit | 70f435e909a979c94d3baed1da1310ba6bc71e43 (patch) | |
| tree | c36bdd5dfe5d1e2898828b8e2dccb88bd9624421 /src | |
| parent | 512d82071eb258e0845c1a682f9d0ad4aacee193 (diff) | |
| download | invidious-70f435e909a979c94d3baed1da1310ba6bc71e43.tar.gz invidious-70f435e909a979c94d3baed1da1310ba6bc71e43.tar.bz2 invidious-70f435e909a979c94d3baed1da1310ba6bc71e43.zip | |
Fix nillable for recommendedVideos
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
