From 6c234ff2f452033923c77b6c01bff6497afe4cfa Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Wed, 8 May 2024 17:59:26 +0200 Subject: [PATCH] fix shortened title not being used --- src/client/youtube/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/youtube/data.rs b/src/client/youtube/data.rs index 02cf3ec..638c156 100644 --- a/src/client/youtube/data.rs +++ b/src/client/youtube/data.rs @@ -84,7 +84,7 @@ pub(crate) fn create_youtube_title( Location::Playlist => Some(YOUTUBE_TITLE_MAX_LENGTH), Location::Other => None, }; - shorten_string_if_needed(&title, max_len); + let title = shorten_string_if_needed(&title, max_len); Ok(title) }