A live bird collage card for your Home Assistant dashboard.
handles apostrophy
mcguirepr89ba5ad4d53ac5
diff --git a/scripts/get_citation.sh b/scripts/get_citation.shindex 5452d628..74f4b1f1 100755--- a/scripts/get_citation.sh+++ b/scripts/get_citation.sh@@ -1,9 +1,10 @@#!/usr/bin/env bash# testing getting images dynamicallyfirst_call=$(lynx -dump -listonly "https://commons.wikimedia.org/w/index.php?search=${1//_/+}&title=Special:MediaSearch&go=Go&type=image")-lynx -dump -nonumbers $(lynx -dump \- $(echo "$first_call" \+set -x+lynx -dump -nonumbers "$(lynx -dump \+ "$(echo "$first_call" \| sed '11q;d' \- | awk '{print $2}' ) \- | awk -F'. ' '/Cite/ {print $2}' \- | xargs echo -n) 2>&1 | grep -A10 'Chicago style' | grep -A10 -e '^$' | grep -B10 'CBE' | grep -B10 -e '^$'+ | awk '{print $2}' )" \+ | awk -F'. ' '/Cite/ {print $3}' \+ | xargs echo -n)" 2>&1 | grep -A10 'Chicago style' | grep -A10 -e '^$' | grep -B10 'CBE' | grep -B10 -e '^$'diff --git a/scripts/stats.php b/scripts/stats.phpindex 01bcfc29..32c81177 100644--- a/scripts/stats.php+++ b/scripts/stats.php@@ -216,7 +216,7 @@ while($rows=$stats ->fetch_assoc())<?phpwhile($row = $result->fetch_assoc()) {?>- <option value='<?php echo $row['Com_Name'];?>'><?php echo $row['Com_Name'];?></option>"+ <option value="<?php echo $row['Com_Name'];?>"><?php echo $row['Com_Name'];?></option>"<?php}?>