mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-28 17:07:53 +01:00
Fix nillable for recommendedVideos
This commit is contained in:
parent
512d82071e
commit
70f435e909
@ -1116,7 +1116,7 @@ def extract_player_config(body, html)
|
|||||||
rvs = extract_recommended(rvs)
|
rvs = extract_recommended(rvs)
|
||||||
rvs.each_with_index do |rv, i|
|
rvs.each_with_index do |rv, i|
|
||||||
if !rv["view_count"]?
|
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
|
if rv_params
|
||||||
rvs[i]["short_view_count_text"] = rv_params["short_view_count_text"]
|
rvs[i]["short_view_count_text"] = rv_params["short_view_count_text"]
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user