move gallery-dl stuff to own folder

This commit is contained in:
2024-07-09 01:41:35 +02:00
parent 1ef3acf6d9
commit 96ab731e57
5 changed files with 5 additions and 57 deletions

View File

@ -1,5 +1,2 @@
to_download*
downloaded*
*.sqlite3
log.txt
gallery-dl
Artists

View File

@ -1,51 +0,0 @@
{
"extractor":
{
"base-directory": "./Artists",
"archive": "./archive.sqlite3",
"rule34":
{
"archive": "./archive-rule34.sqlite3",
"filename": "{md5}.{extension}",
"directory": ["{search_tags}", "Rule34"]
},
"kemonoparty":
{
"archive": "./archive-kemono.sqlite3",
"filename": "{id}_{num:>03}.{extension}",
"directory": ["{user}", "Kemono"]
}
},
"downloader":
{
"part-directory": "/tmp",
"rate": "30M",
"retries": 3,
"timeout": 10
},
"output":
{
"ansi": true,
"log": {
"level": "info",
"format": {
"debug" : "\u001b[0;37m{name}: {message}\u001b[0m",
"info" : "\u001b[1;37m{name}: {message}\u001b[0m",
"warning": "\u001b[1;33m{name}: {message}\u001b[0m",
"error" : "\u001b[1;31m{name}: {message}\u001b[0m"
}
},
"logfile": {
"path": "./log.txt",
"mode": "w",
"format-date": "%Y-%m-%dT%H:%M:%S",
"level": "debug"
}
}
}

View File

@ -0,0 +1 @@
https://kemono.su/fantia/user/8565

View File

@ -0,0 +1 @@
https://rule34.xxx/index.php?page=post&s=list&tags=meeewchi

View File

@ -6,13 +6,13 @@ NO_COLOR="\033[0m" # Text Reset
setup_test() {
[[ ! -d ./Artists ]]
rm -rf archive*.sqlite3 ./log.txt ./Artists/* || exit 1
rm -rf ./gallery-dl/*.sqlite3 ./gallery-dl/log.txt ./Artists/* || exit 1
}
download() {
while [ 1 ]
do
gallery-dl --config ./config.json --input-file-delete $1
gallery-dl --config ./gallery-dl/config.json --input-file-delete $1
if [ ! -s $1 ]; then
echo -e "${IGREEN}file empty${NO_COLOR}"