HTML title: remove the sed expression - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit b24e37c0170effc98b6a293a108fc56e81b39216 | |
parent 597b3e02ac1fc79e31b0be4cc4d7253f40795535 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sat, 30 May 2020 17:55:11 +0200 | |
HTML title: remove the sed expression | |
It broke for Youtube titles with control-characters and certain | |
codepoints. Grabtitle replaces control-characters to spaces already. | |
Diffstat: | |
M annna-start-services | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -49,7 +49,7 @@ annna_common() { | |
then | |
tmpf=$(mktemp) | |
fetch-url "${uri}" > "${tmpf}" | |
- urititle="$(grabtitle < "${tmpf}" | sed 's/^ *\(.\{0,2… | |
+ urititle="$(grabtitle < "${tmpf}")" | |
# TODO: Replace all of this with a better logic for pa… | |
if [ -n "$urititle" ]; | |
then |