mirror of
https://github.com/Radiquum/furaffinity-dl.git
synced 2025-04-17 14:54:36 +00:00
parent
020f10502b
commit
53bb1479dc
1 changed files with 5 additions and 2 deletions
|
@ -56,7 +56,7 @@ metadata=true
|
||||||
rename=true
|
rename=true
|
||||||
maxsavefiles="0"
|
maxsavefiles="0"
|
||||||
overwrite=false
|
overwrite=false
|
||||||
while getopts 'o:c:iphrn:' flag; do
|
while getopts 'o:c:iphrnw:' flag; do
|
||||||
case "${flag}" in
|
case "${flag}" in
|
||||||
w) overwrite=true;;
|
w) overwrite=true;;
|
||||||
o) outdir=${OPTARG};;
|
o) outdir=${OPTARG};;
|
||||||
|
@ -139,7 +139,10 @@ https://github.com/Xerbo/furaffinity-dl/issues" >&2
|
||||||
title="${title%" by"*}" # Remove the " by Artist" bit
|
title="${title%" by"*}" # Remove the " by Artist" bit
|
||||||
title="$(echo $title | tr -d "/")"
|
title="$(echo $title | tr -d "/")"
|
||||||
file_type="${image_url##*.}"
|
file_type="${image_url##*.}"
|
||||||
file_name="$(echo $image_url | cut -d "/" -f 7)"
|
file_name="$(echo "$image_url" | cut -d "/" -f 7)"
|
||||||
|
if [[ "$file_name" =~ ^[0-9]{0,12}$ ]]; then
|
||||||
|
file_name="$(echo "$image_url" | cut -d "/" -f 8)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Choose the output path
|
# Choose the output path
|
||||||
if [ $rename = true ]; then
|
if [ $rename = true ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue