mirror of
https://github.com/jojo2357/kiwix-zim-updater.git
synced 2026-11-30 20:06:19 -05:00
fix: progress arguments while downloading index
This commit is contained in:
parent
a5700bcc15
commit
91caeac1fc
2 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ master_scrape() {
|
|||
|
||||
if [[ FORCE_FETCH_INDEX -eq 1 ]] || [[ $indexIsValid -eq 0 ]]; then
|
||||
# both write the file timestamp to the index file and save all of the links to RawLibrary
|
||||
RawLibrary="$($WGET_CMD ${WGET_SHOW_PROGRESS//--progress=bar*/} -q -O - "https://library.kiwix.org/catalog/v2/entries?count=-1" | tee --output-error=warn-nopipe >(grep -ioP "(?<=<updated>)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z</updated>)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")"
|
||||
RawLibrary="$($WGET_CMD $WGET_SHOW_PROGRESS -q -O - "https://library.kiwix.org/catalog/v2/entries?count=-1" | tee --output-error=warn-nopipe >(grep -ioP "(?<=<updated>)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z</updated>)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")"
|
||||
|
||||
echo "$RawLibrary" >> kiwix-index
|
||||
else
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ master_scrape() {
|
|||
|
||||
if [[ FORCE_FETCH_INDEX -eq 1 ]] || [[ $indexIsValid -eq 0 ]]; then
|
||||
# both write the file timestamp to the index file and save all of the links to RawLibrary
|
||||
RawLibrary="$($WGET_CMD ${WGET_SHOW_PROGRESS//--progress=bar*/} -q -O - "https://library.kiwix.org/catalog/v2/entries?count=-1" | tee --output-error=warn-nopipe >(grep -ioP "(?<=<updated>)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z</updated>)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")"
|
||||
RawLibrary="$($WGET_CMD $WGET_SHOW_PROGRESS -q -O - "https://library.kiwix.org/catalog/v2/entries?count=-1" | tee --output-error=warn-nopipe >(grep -ioP "(?<=<updated>)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z</updated>)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")"
|
||||
|
||||
echo "$RawLibrary" >> kiwix-index
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue