summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortechchud <protrude_paying969@simplelogin.com>2025-08-17 19:35:25 -0500
committertechchud <protrude_paying969@simplelogin.com>2025-08-17 19:35:25 -0500
commit2204207410ae8d834d056ecb176f13a5339afae2 (patch)
tree1087faf7d83669dc6208f8ebd3ecf3c9c3c86668
parent8a494231c9719542ca2f7ae69814b1614adbb5c5 (diff)
downloadstashley-2204207410ae8d834d056ecb176f13a5339afae2.tar.gz
stashley-2204207410ae8d834d056ecb176f13a5339afae2.tar.bz2
stashley-2204207410ae8d834d056ecb176f13a5339afae2.zip
ensure that the name of the personality isn't treated like a platform with urls
-rwxr-xr-xstashley26
1 files changed, 16 insertions, 10 deletions
diff --git a/stashley b/stashley
index b5c9954..fb44561 100755
--- a/stashley
+++ b/stashley
@@ -1,18 +1,24 @@
#!/bin/sh
tomlq -r '.|keys_unsorted[]' "$1" | while IFS= read -r site;
do
- tomlq -r ".$site.urls[]" "$1" | while IFS= read -r url;
-do
- if [ "$site" = "youtube" ]
+ if [ "$site" != "name" ]
then
- yt-dlp --write-info-json --write-description --write-thumbnail --write-annotations --all-subs --ignore-error -f 'bestvideo[height>=720][fps>=60]+bestaudio/bestvideo+bestaudio/best' -o 'YouTube/%(uploader|author)s/%(title)s.%(ext)s' "$url"
- elif [ "$site" = "website" ]
- then
- wget --mirror --warc-file="echo $url|sed -e '//\//slash/g'"
- else
- gallery-dl --write-metadata "$site":"$url"
+ tomlq -r ".$site.urls[]" "$1" | while IFS= read -r url;
+ do
+ if [ "$site" = "youtube" ]
+ then
+ yt-dlp --write-info-json --write-description --write-thumbnail --write-annotations --all-subs --ignore-error -f 'bestvideo[height>=720][fps>=60]+bestaudio/bestvideo+bestaudio/best' -o 'YouTube/%(uploader|author)s/%(title)s.%(ext)s' "$url"
+ elif [ "$site" = "website" ]
+ then
+ wget --mirror --warc-file="echo $url|sed -e '//\//slash/g'"
+ elif [ "$site" = "toyhouse" ] || [ "$site" = "instagram" ] || [ "$site" = "twitter" ]
+ then
+ gallery-dl --write-metadata "$url"
+ else
+ gallery-dl --write-metadata "$site":"$url"
+ fi
+ done
fi
-done
done