From 7a665e9c2d45d2982279490cb185fa6384f56a3a Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 26 Apr 2021 12:54:13 -0400 Subject: [PATCH] Allow Cyrillic in YT titles --- home/lib/login_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 185fb26..4ed67ba 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -256,7 +256,7 @@ _yt() { local -r opts="$3" local -r id=$(youtube-dlc --get-id "$uri") - local -r title=$(youtube-dlc --get-title "$uri" | sed 's/[^A-Za-z0-9._-]/_/g') + local -r title=$(youtube-dlc --get-title "$uri" | sed 's/[^А-Яа-яA-Za-z0-9._-]/_/g') local -r dir="${base_dir}/${title}--${id}" mkdir -p "$dir" -- 2.20.1