blob: b08a0bb4aa8842cfb1a85f07401ec46d0ae0a0ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/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 .
|