HTML title: remove the sed expression - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit b24e37c0170effc98b6a293a108fc56e81b39216 DIR parent 597b3e02ac1fc79e31b0be4cc4d7253f40795535 HTML Author: Annna Robert-Houdin <annna@bitreich.org> 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(-) --- DIR 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,200\}\).*/\1/')" + urititle="$(grabtitle < "${tmpf}")" # TODO: Replace all of this with a better logic for parsing global domains. if [ -n "$urititle" ]; then