diff options
author | msglm <msglm@techchud.xyz> | 2023-07-15 05:42:39 -0500 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-07-15 05:42:39 -0500 |
commit | b80400bd1f1e7e40a10b65be3837f62610e2b7bd (patch) | |
tree | 1087faf7d83669dc6208f8ebd3ecf3c9c3c86668 | |
parent | 77d11dc6d1c6aeb37d39ff1db2bed014e9fefa16 (diff) | |
download | stashley-b80400bd1f1e7e40a10b65be3837f62610e2b7bd.tar.gz stashley-b80400bd1f1e7e40a10b65be3837f62610e2b7bd.tar.bz2 stashley-b80400bd1f1e7e40a10b65be3837f62610e2b7bd.zip |
ensure that the name of the personality isn't treated like a platform with urlsv1.0.2
-rwxr-xr-x | stashley | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -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 |