Allow Cyrillic in YT titles
authorSiraaj Khandkar <siraaj@khandkar.net>
Mon, 26 Apr 2021 16:54:13 +0000 (12:54 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Mon, 26 Apr 2021 16:54:13 +0000 (12:54 -0400)
home/lib/login_functions.sh

index 185fb26..4ed67ba 100644 (file)
@@ -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"
This page took 0.027675 seconds and 4 git commands to generate.