summarylogtreecommitdiffstats
path: root/use_wget.patch
blob: d186f7c9e04f6fb5f476db9d396bdb2a4c21bd22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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; }