From 55653f9130947db2ec6284ff80650bb9325947ff Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 21 Aug 2017 20:22:50 +0200 Subject: [PATCH] Get screenshot URL from AppStream --- code/worker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/worker.sh b/code/worker.sh index fff7ad71..9b56dc3b 100644 --- a/code/worker.sh +++ b/code/worker.sh @@ -302,7 +302,7 @@ for INPUTBASENAME in database/*; do fi # Screenshot if [ -f database/$INPUTBASENAME/*appdata.xml ] ; then - SCREENSHOT=$(cat database/$INPUTBASENAME/*appdata.xml | xmlstarlet sel -t -m "/component/screenshots/screenshot[1]" -v .) + SCREENSHOT=$(cat database/$INPUTBASENAME/*appdata.xml | xmlstarlet sel -t -m "/component/screenshots/screenshot[1]/image" -v .) if [ "$SCREENSHOT" != "" ] ; then echo "screenshots:" >> apps/$INPUTBASENAME.md echo "- $SCREENSHOT" >> apps/$INPUTBASENAME.md