From: Siraaj Khandkar Date: Mon, 26 Apr 2021 16:54:13 +0000 (-0400) Subject: Allow Cyrillic in YT titles X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=7a665e9c2d45d2982279490cb185fa6384f56a3a;p=khome.git Allow Cyrillic in YT titles --- 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"