From 0f9ca18b3732aa82854c8ca928e27954d1656937 Mon Sep 17 00:00:00 2001 From: msglm Date: Fri, 14 Jul 2023 20:28:08 -0500 Subject: Initial Commit --- personality-archiver | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 personality-archiver (limited to 'personality-archiver') 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 -- cgit v1.2.3