did stuff

This commit is contained in:
2024-07-10 00:14:06 +02:00
parent acdf8e9f90
commit 9f15de7b36
4 changed files with 19 additions and 18 deletions

2
yt-dlp/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
downloaded_iwara.txt
Artists

View File

@ -107,6 +107,7 @@ https://www.iwara.tv/profile/rx
https://www.iwara.tv/profile/saikkuro https://www.iwara.tv/profile/saikkuro
https://www.iwara.tv/profile/salmina https://www.iwara.tv/profile/salmina
https://www.iwara.tv/profile/saya_end38 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/sfm-slayer
https://www.iwara.tv/profile/shantianxiaozhi https://www.iwara.tv/profile/shantianxiaozhi
https://www.iwara.tv/profile/shirotako https://www.iwara.tv/profile/shirotako

16
yt-dlp/yt-dlp.sh Executable file
View File

@ -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

View File

@ -1,24 +1,6 @@
# best video and audio
-f "Source / 540 / 360" -f "Source / 540 / 360"
# Thumbnail
#--write-thumbnail
--embed-thumbnail --embed-thumbnail
# Embed info json
#--write-info-json
--embed-info-json --embed-info-json
# Metadata
--embed-metadata --embed-metadata
# Description
--write-description
# Concurrent download of fragments
--concurrent-fragments 8 --concurrent-fragments 8
# Cache
--cache-dir ./cache
--remux-video mkv --remux-video mkv