diff --git a/gallery-dl/.gitignore b/gallery-dl/.gitignore index d603b73..3d42961 100644 --- a/gallery-dl/.gitignore +++ b/gallery-dl/.gitignore @@ -1,5 +1,2 @@ -to_download* -downloaded* -*.sqlite3 -log.txt +gallery-dl Artists diff --git a/gallery-dl/config.json b/gallery-dl/config.json deleted file mode 100644 index c622d0d..0000000 --- a/gallery-dl/config.json +++ /dev/null @@ -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" - } - } -} - diff --git a/gallery-dl/downloaded_kemono.txt b/gallery-dl/downloaded_kemono.txt new file mode 100644 index 0000000..04d974e --- /dev/null +++ b/gallery-dl/downloaded_kemono.txt @@ -0,0 +1 @@ +https://kemono.su/fantia/user/8565 diff --git a/gallery-dl/downloaded_r34.txt b/gallery-dl/downloaded_r34.txt new file mode 100644 index 0000000..678ef81 --- /dev/null +++ b/gallery-dl/downloaded_r34.txt @@ -0,0 +1 @@ +https://rule34.xxx/index.php?page=post&s=list&tags=meeewchi diff --git a/gallery-dl/gallery-dl.sh b/gallery-dl/gallery-dl.sh index 1359373..92b78af 100755 --- a/gallery-dl/gallery-dl.sh +++ b/gallery-dl/gallery-dl.sh @@ -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}"