From 39e06a12805bc2ef6a709bfa1e9218e50e25cda3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 25 Aug 2013 20:53:43 -0300 Subject: Make depth configurable --- config | 1 + lib/httracker/functions | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config b/config index 67f9222..cc11c3a 100644 --- a/config +++ b/config @@ -9,3 +9,4 @@ EXT_LEVEL="1" FILESIZE="" USER="arquivo" GROUP="arquivo" +DEPTH="2" diff --git a/lib/httracker/functions b/lib/httracker/functions index 77fc667..b283586 100644 --- a/lib/httracker/functions +++ b/lib/httracker/functions @@ -29,7 +29,7 @@ function httracker_get { httrack \ --mirror \ --continue \ - --depth=2 \ + --depth=${DEPTH} \ --purge-old=0 \ --index \ --cookies=1 \ @@ -67,7 +67,7 @@ function httracker_get_incremental { --mirror \ --continue \ --user links \ - --depth=2 \ + --depth=${DEPTH} \ --purge-old=0 \ --index \ --cookies=1 \ -- cgit v1.2.3