diff options
-rw-r--r-- | README.mdwn | 1 | ||||
-rwxr-xr-x | httracker | 4 |
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. @@ -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." |