diff options
author | techchud <protrude_paying969@simplelogin.com> | 2025-08-17 19:35:25 -0500 |
---|---|---|
committer | techchud <protrude_paying969@simplelogin.com> | 2025-08-17 19:35:25 -0500 |
commit | bcab2095fff0bd00ef65d4169306694539d6b676 (patch) | |
tree | d80ca6c65a11ae1121a2ebed20c758232669d455 /personality-archiver | |
download | stashley-bcab2095fff0bd00ef65d4169306694539d6b676.tar.gz stashley-bcab2095fff0bd00ef65d4169306694539d6b676.tar.bz2 stashley-bcab2095fff0bd00ef65d4169306694539d6b676.zip |
Initial Commit
Diffstat (limited to 'personality-archiver')
-rwxr-xr-x | personality-archiver | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/personality-archiver b/personality-archiver new file mode 100755 index 0000000..5572bde --- /dev/null +++ b/personality-archiver @@ -0,0 +1,23 @@ +#!/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" ] + 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" = "twitter" ] + then + gallery-dl --write-metadata "$url" + elif [ "$site" = "instagram" ] + then + gallery-dl --write-metadata "$url" + elif [ "$site" = "toyhouse" ] + then + gallery-dl --write-metadata "$url" + else + gallery-dl --write-metadata "$site":"$url" + fi +done + +done |