Fix streaming mp4. Thanks adc! - 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 01ff11afa45131d9eaf96724dff962d0d824cad4 DIR parent c5465a2a3c3d3ce5e03674175d928987524e8d47 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sat, 22 Oct 2022 12:32:02 +0200 Fix streaming mp4. Thanks adc! Diffstat: M annna-add-hashtag | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- DIR diff --git a/annna-add-hashtag b/annna-add-hashtag @@ -299,6 +299,12 @@ processtag() { ;; esac + tagfilenew="$(/br/bin/quinq-size "${tagfile}" </dev/null | sed 's/.* -> //')" + if [ -e "${tagfilenew}" ] && [ $? -eq 0 ]; + then + mv "${tagfilenew}" "${tagfile}" + fi + case "${tagfile}" in *.MP4|*.mp4|*.MKV|*.mkv|*.webm|*.WEBM|*.mov|*.MOV) printf "Making %s streamable by adding faststart.\n" "${tagfile}" @@ -306,12 +312,6 @@ processtag() { mv "faststart_${tagfile}" "${tagfile}" ;; esac - - tagfilenew="$(/br/bin/quinq-size "${tagfile}" </dev/null | sed 's/.* -> //')" - if [ -e "${tagfilenew}" ] && [ $? -eq 0 ]; - then - mv "${tagfilenew}" "${tagfile}" - fi } inserttag() {