diff options
author | msglm <msglm@techchud.xyz> | 2023-07-15 04:08:54 -0500 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-07-15 04:08:54 -0500 |
commit | 4a990b7a0f5c48cf6c7eea7fac31d0640de7d04c (patch) | |
tree | 1ab20d3050a37e1138afdb2ea5fa3c542b9a9b64 /personality-archiver | |
parent | 80379b4572ce31d2841c3b7c9f0920d1ba77901a (diff) | |
download | stashley-4a990b7a0f5c48cf6c7eea7fac31d0640de7d04c.tar.gz stashley-4a990b7a0f5c48cf6c7eea7fac31d0640de7d04c.tar.bz2 stashley-4a990b7a0f5c48cf6c7eea7fac31d0640de7d04c.zip |
readme addedv1.0.0
Diffstat (limited to 'personality-archiver')
-rwxr-xr-x | personality-archiver | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/personality-archiver b/personality-archiver deleted file mode 100755 index 9afce6d..0000000 --- a/personality-archiver +++ /dev/null @@ -1,39 +0,0 @@ -#!/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 - -fdupes -dIr . - -if [[ ipfs --help == 0 ]] -then - ## Add new content to personality-archive - personalityName=$(tomlq -r '.name' $1) - ipfs files mkdir /personality-archive - personalityHash=$(ipfs add -Q -r .) - ipfs files rm -r /personality-archive/$personalityName - ipfs files cp /ipfs/$personalityHash /personality-archive/$personalityName - - ## Update IPNS with new personality-archive - personalityArchiveLocationHash=$(ipfs files stat --hash /personality-archive) - ipfs name publish $personalityArchiveLocationHash -fi |