fixup! fix: use short_description as description if microformat is not available
Some checks are pending
Build and release container directly from master / release (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.12.1, true) (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.13.2, true) (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.14.0, true) (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.15.0, true) (push) Waiting to run
Invidious CI / build-docker (push) Waiting to run
Invidious CI / build-docker-arm64 (push) Waiting to run
Invidious CI / lint (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (nightly, false) (push) Waiting to run

This commit is contained in:
Fijxu 2025-03-07 16:20:32 -03:00
parent f283cb3dfb
commit 7ba5b6d410
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -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) }