From 6aaa6e796ca9806d810d75a6b10f12e97d97bd35 Mon Sep 17 00:00:00 2001 From: AustrianToast Date: Tue, 9 Jul 2024 01:19:07 +0200 Subject: [PATCH] add kemono support --- gallery-dl/config.json | 9 ++++++++- gallery-dl/gallery-dl.sh | 9 +++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gallery-dl/config.json b/gallery-dl/config.json index 5e1567e..dd40cdd 100644 --- a/gallery-dl/config.json +++ b/gallery-dl/config.json @@ -1,7 +1,7 @@ { "extractor": { - "base-directory": "./Download", + "base-directory": "./Artists", "archive": "./archive.sqlite3", "rule34": @@ -10,6 +10,13 @@ "filename": "{md5}.{extension}", "directory": ["{search_tags}", "Rule34"] + }, + "kemono": + { + "archive": "./archive-kemono.sqlite3", + + "filename": "{md5}.{extension}", + "directory": ["{user}", "Kemono"] } }, diff --git a/gallery-dl/gallery-dl.sh b/gallery-dl/gallery-dl.sh index 3f94910..aad41fa 100755 --- a/gallery-dl/gallery-dl.sh +++ b/gallery-dl/gallery-dl.sh @@ -5,6 +5,7 @@ IYELLOW="\033[0;93m" # Intense Yellow NO_COLOR="\033[0m" # Text Reset setup_test() { + [[ ! -d ./Artists ]] rm -f ./archive.sqlite3 ./archive-rule34.sqlite3 ./log.txt || exit 1 rm -rf ./Download/* || exit 1 } @@ -36,5 +37,13 @@ download_r34() { 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 download_r34 +download_kemono