diff --git a/bookmenu b/bookmenu old mode 100644 new mode 100755 index 16d81eb..11631ae --- a/bookmenu +++ b/bookmenu @@ -16,7 +16,7 @@ TEXT="/tmp/bookmenu_text" command -v chafa >/dev/null || { echo "missing \"chafa\" dependency"; exit 1; } -get_index() { curl -s "${URL1}/${QUERY}/?extension=$FORMAT" > $INDEX; } +get_index() { wget -O - -q "${URL1}/${QUERY}/?extension=$FORMAT" > $INDEX; } get_list() { grep "data-src" $INDEX | cut -d'"' -f8 | sed '/^\//d' > $LIST; max=$(wc -l $LIST | cut -d' ' -f1); } get_title() { grep "text-decoration" $INDEX | cut -d'>' -f2 | tail -n +3 | sed -e "s/...$//" > $TITLE; } get_info() { grep 'MB\|KB' $INDEX | cut -d">" -f2 | cut -d"<" -f1 > $INFO; }