fixup! fix: use short_description as description if microformat is not available
All checks were successful
Invidious CI / build (push) Successful in 6m4s
All checks were successful
Invidious CI / build (push) Successful in 6m4s
This commit is contained in:
parent
f283cb3dfb
commit
7ba5b6d410
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
|
|||
# Description
|
||||
|
||||
short_description = player_response.dig?("videoDetails", "shortDescription")
|
||||
description = microformat.try &.dig?("description", "simpleText").try &.as_s || short_description || ""
|
||||
description = microformat.try &.dig?("description", "simpleText").try &.as_s || short_description.try &.as_s || ""
|
||||
|
||||
# description_html = video_secondary_renderer.try &.dig?("description", "runs")
|
||||
# .try &.as_a.try { |t| content_to_comment_html(t, video_id) }
|
||||
|
|
Loading…
Add table
Reference in a new issue