small change
This commit is contained in:
@ -10,18 +10,21 @@ setup_test() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
download() {
|
download() {
|
||||||
|
[[ -f downloaded_$1.txt ]] || echo -e "${IYELLOW}download_$1: no file to download from${NO_COLOR}" || exit 1
|
||||||
|
cp downloaded_$1.txt to_download_$1.txt
|
||||||
|
|
||||||
while [ 1 ]
|
while [ 1 ]
|
||||||
do
|
do
|
||||||
gallery-dl --config ./gallery-dl/config.json --input-file-delete $1
|
gallery-dl --config ./gallery-dl/config.json --input-file-delete to_download_$1.txt
|
||||||
|
|
||||||
if [ ! -s $1 ]; then
|
if [ ! -s to_download_$1.txt ]; then
|
||||||
echo -e "${IGREEN}file empty${NO_COLOR}"
|
echo -e "${IGREEN}file empty${NO_COLOR}"
|
||||||
rm $1
|
rm to_download_$1.txt
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
echo -e "${IYELLOW}file not empty${NO_COLOR}"
|
echo -e "${IYELLOW}file not empty${NO_COLOR}"
|
||||||
|
|
||||||
if [ $(ping -qc 3 matrix.hopeless-cloud.xyz > /dev/null 2>&1) ]; then
|
if [ $(ping -qc 3 hopeless-cloud.xyz > /dev/null 2>&1) ]; then
|
||||||
echo -e "${IYELLOW}no internet${NO_COLOR}"
|
echo -e "${IYELLOW}no internet${NO_COLOR}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -29,20 +32,6 @@ download() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
download_r34() {
|
|
||||||
[[ -f downloaded_r34.txt ]] || echo -e "${IYELLOW}download_r34: no file to download from${NO_COLOR}" || exit 1
|
|
||||||
cp downloaded_r34.txt to_download_r34.txt
|
|
||||||
|
|
||||||
download to_download_r34.txt
|
|
||||||
}
|
|
||||||
|
|
||||||
download_kemono() {
|
|
||||||
[[ -f downloaded_kemono.txt ]] || echo -e "${IYELLOW}download_kemono: no file to download from${NO_COLOR}" || exit 1
|
|
||||||
cp downloaded_kemono.txt to_download_kemono.txt
|
|
||||||
|
|
||||||
download to_download_kemono.txt
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_test
|
setup_test
|
||||||
download_r34
|
download r34
|
||||||
download_kemono
|
download kemono
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
{
|
{
|
||||||
"archive": "./gallery-dl/archive-kemono.sqlite3",
|
"archive": "./gallery-dl/archive-kemono.sqlite3",
|
||||||
|
|
||||||
"filename": "{id}_{num:>03}.{extension}",
|
"filename": "{hash}.{extension}",
|
||||||
"directory": ["{user}", "Kemono"]
|
"directory": ["{user}", "Kemono"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
1
gallery-dl/to_download_kemono.txt
Normal file
1
gallery-dl/to_download_kemono.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://kemono.su/fantia/user/8565
|
Reference in New Issue
Block a user