From 4fad0336c10fbfa286a5c346ee7e62e71614a7d7 Mon Sep 17 00:00:00 2001 From: stardiviner Date: Sat, 23 Dec 2023 02:15:12 +0800 Subject: [PATCH] truncate `vid' length to avoid breaking `youtube-dl-list' buffer the `vid' column width. --- youtube-dl.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube-dl.el b/youtube-dl.el index 9fa8ddc..5572d60 100644 --- a/youtube-dl.el +++ b/youtube-dl.el @@ -658,7 +658,9 @@ $ youtube-dl --get-filename " ;; to update. Be sure to call youtube-dl with the --verbose ;; flag and include its complete output. (error (format "[youtube-dl] `youtube-dl--get-vid' retrive video vid error!\n%s" output))) - parameters))))))))) + ;; truncate `vid' length to avoid breaking `youtube-dl-list' buffer the `vid' column width. + ;; TEST: (youtube-dl--get-vid "https://www.youtube.com/watch?v=1234567890abcdefghijklmnopqrstuvwxyz") + (s-truncate 15 parameters)))))))))) ;;; TEST: ;; (let ((parameters "/video/BV1B8411L7te/")) -- 2.11.4.GIT