home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89f8a15
)
Allow Cyrillic in YT titles
author
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 26 Apr 2021 16:54:13 +0000
(12:54 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 26 Apr 2021 16:54:13 +0000
(12:54 -0400)
home/lib/login_functions.sh
patch
|
blob
|
blame
|
history
diff --git
a/home/lib/login_functions.sh
b/home/lib/login_functions.sh
index
185fb26
..
4ed67ba
100644
(file)
--- 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"
This page took
0.027675 seconds
and
4
git commands to generate.