From 698cd49529a5459a979881d1d50407f8a5edbd18 Mon Sep 17 00:00:00 2001 From: shiny-comic Date: Tue, 17 Feb 2026 13:42:08 +0900 Subject: [PATCH] Update src/invidious/videos/description.cr Co-authored-by: Fijxu --- src/invidious/videos/description.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invidious/videos/description.cr b/src/invidious/videos/description.cr index 9f36477c..d448ba80 100644 --- a/src/invidious/videos/description.cr +++ b/src/invidious/videos/description.cr @@ -86,7 +86,8 @@ def parse_description(desc, video_id : String) : String? end # Copy the end of the string (past the last command). - remaining_length = utf16_length(content) - index + content_size = content.ascii_only? ? content.size : utf16_length(content) + remaining_length = content_size - index copy_string(str, iter, remaining_length) if remaining_length > 0 end end