Fix a bug in screenshot scraping, start new instance. - 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 b4d79ed0bdd7fcdf0aaef8253f0f5d46922dc557
DIR parent 5da3e1303815912a4bc6babba317b33ecb8ceeff
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Thu, 4 Jun 2020 13:41:37 +0200
Fix a bug in screenshot scraping, start new instance.
Diffstat:
M annna-start-services | 2 ++
M nwo-chip-all | 0
M screenshot-url | 3 ++-
M subtitle-paste | 2 --
4 files changed, 4 insertions(+), 3 deletions(-)
---
DIR diff --git a/annna-start-services b/annna-start-services
@@ -71,6 +71,7 @@ annna_common() {
annna-say -c "${channel}" "HTML title: ${urititle}"
fi
else
+ set -x
wikipedia=0
case "${uri}" in
*twitter.com*)
@@ -110,6 +111,7 @@ annna_common() {
spurl=""
;;
esac
+ set +x
if [ $wikipedia -eq 0 ];
then
DIR diff --git a/nwo-chip-all b/nwo-chip-all
DIR diff --git a/screenshot-url b/screenshot-url
@@ -19,7 +19,8 @@ pastebase="/br/gopher/paste"
cd "${pastebase}"
tmpfile="$(mktemp p-XXXXXXXXXXXXX.png)"
-firefox $firefoxargs --screenshot "${pastebase}/${tmpfile}" "${url}" 2>&1 >/dev/null
+firefox $firefoxargs --new-instance --screenshot \
+ "${pastebase}/${tmpfile}" "${url}" 2>&1 >/dev/null
# Firefox stores with rw----
chmod g+wr "${pastebase}/${tmpfile}"
DIR diff --git a/subtitle-paste b/subtitle-paste
@@ -1,7 +1,5 @@
#!/bin/sh
-set -x
-
export PATH="/home/annna/bin:$PATH"
if [ $# -lt 1 ];