move gallery-dl stuff to own folder
This commit is contained in:
5
gallery-dl/.gitignore
vendored
5
gallery-dl/.gitignore
vendored
@ -1,5 +1,2 @@
|
|||||||
to_download*
|
gallery-dl
|
||||||
downloaded*
|
|
||||||
*.sqlite3
|
|
||||||
log.txt
|
|
||||||
Artists
|
Artists
|
||||||
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
1
gallery-dl/downloaded_kemono.txt
Normal file
1
gallery-dl/downloaded_kemono.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://kemono.su/fantia/user/8565
|
1
gallery-dl/downloaded_r34.txt
Normal file
1
gallery-dl/downloaded_r34.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://rule34.xxx/index.php?page=post&s=list&tags=meeewchi
|
@ -6,13 +6,13 @@ NO_COLOR="\033[0m" # Text Reset
|
|||||||
|
|
||||||
setup_test() {
|
setup_test() {
|
||||||
[[ ! -d ./Artists ]]
|
[[ ! -d ./Artists ]]
|
||||||
rm -rf archive*.sqlite3 ./log.txt ./Artists/* || exit 1
|
rm -rf ./gallery-dl/*.sqlite3 ./gallery-dl/log.txt ./Artists/* || exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
download() {
|
download() {
|
||||||
while [ 1 ]
|
while [ 1 ]
|
||||||
do
|
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
|
if [ ! -s $1 ]; then
|
||||||
echo -e "${IGREEN}file empty${NO_COLOR}"
|
echo -e "${IGREEN}file empty${NO_COLOR}"
|
||||||
|
Reference in New Issue
Block a user