aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.mdwn1
-rwxr-xr-xhttracker4
2 files changed, 3 insertions, 2 deletions
diff --git a/README.mdwn b/README.mdwn
index 48f9eca..c07521b 100644
--- a/README.mdwn
+++ b/README.mdwn
@@ -7,3 +7,4 @@ TODO
----
- Auto sync git-annex at arquivo.sarava.org.
+- Cronjob for httracker.
diff --git a/httracker b/httracker
index 42ae9af..982d395 100755
--- a/httracker
+++ b/httracker
@@ -5,7 +5,7 @@
# Configuration
MIRRORS="/var/cache/sites/arquivo/conteudo/links.sarava.org/assets"
-FEED="https://links.sarava.org/rss?sort=date_desc&count=50"
+FEED="https://links.sarava.org/rss?sort=date_desc&count=100"
TMP="/tmp/httracker"
URLS="$TMP/urls.txt"
LEVEL="1"
@@ -54,7 +54,7 @@ mkdir -p $MIRRORS $TMP
# Get URL
# Thanks http://stackoverflow.com/questions/443991/how-to-parse-rss-feeds-xml-in-a-shell-script
-curl -s $FEED | grep -o '<link>[^<]*' | grep -o "[^>]*$" > $URLS
+curl -s "$FEED" | grep -o '<link>[^<]*' | grep -o "[^>]*$" > $URLS
if [ "$?" != "0" ]; then
echo "Error downloading feed $FEED, aborting."