From 9f15de7b361b641d8fdc56d92ead74df47b6761d Mon Sep 17 00:00:00 2001 From: AustrianToast Date: Wed, 10 Jul 2024 00:14:06 +0200 Subject: [PATCH] did stuff --- yt-dlp/.gitignore | 2 ++ yt-dlp/{links.txt => downloaded_iwara.txt} | 1 + yt-dlp/yt-dlp.sh | 16 ++++++++++++++++ yt-dlp/yt-dlp_iwara.conf | 18 ------------------ 4 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 yt-dlp/.gitignore rename yt-dlp/{links.txt => downloaded_iwara.txt} (99%) create mode 100755 yt-dlp/yt-dlp.sh diff --git a/yt-dlp/.gitignore b/yt-dlp/.gitignore new file mode 100644 index 0000000..35c3793 --- /dev/null +++ b/yt-dlp/.gitignore @@ -0,0 +1,2 @@ +downloaded_iwara.txt +Artists diff --git a/yt-dlp/links.txt b/yt-dlp/downloaded_iwara.txt similarity index 99% rename from yt-dlp/links.txt rename to yt-dlp/downloaded_iwara.txt index 5ff2d6d..fbfafd7 100644 --- a/yt-dlp/links.txt +++ b/yt-dlp/downloaded_iwara.txt @@ -107,6 +107,7 @@ https://www.iwara.tv/profile/rx https://www.iwara.tv/profile/saikkuro https://www.iwara.tv/profile/salmina https://www.iwara.tv/profile/saya_end38 +https://www.iwara.tv/profile/seikou https://www.iwara.tv/profile/sfm-slayer https://www.iwara.tv/profile/shantianxiaozhi https://www.iwara.tv/profile/shirotako diff --git a/yt-dlp/yt-dlp.sh b/yt-dlp/yt-dlp.sh new file mode 100755 index 0000000..ccbafb0 --- /dev/null +++ b/yt-dlp/yt-dlp.sh @@ -0,0 +1,16 @@ +#!/usr/bin/bash + +[[ -d ./Artists ]] || mkdir ./Artists +rm -rf ./Artists/* + +readarray -t links < ./downloaded_iwara.txt +for ((i = 0 ; i < ${#links[@]} ; i++)); do + #echo ${links[$i]} + + ARTIST=$(awk -F'/' '{print $5}' <<< ${links[$i]}) + #echo "$ARTIST" + + DESTINATION="./Artists/$ARTIST/%(id)s.%(ext)s" + echo "$DESTINATION" + yt-dlp --config-location ./yt-dlp_iwara.conf ${links[$i]} --output "$DESTINATION" +done \ No newline at end of file diff --git a/yt-dlp/yt-dlp_iwara.conf b/yt-dlp/yt-dlp_iwara.conf index 7bc8f65..bf73f6c 100644 --- a/yt-dlp/yt-dlp_iwara.conf +++ b/yt-dlp/yt-dlp_iwara.conf @@ -1,24 +1,6 @@ -# best video and audio -f "Source / 540 / 360" - -# Thumbnail -#--write-thumbnail --embed-thumbnail - -# Embed info json -#--write-info-json --embed-info-json - -# Metadata --embed-metadata - -# Description ---write-description - -# Concurrent download of fragments --concurrent-fragments 8 - -# Cache ---cache-dir ./cache - --remux-video mkv