Tweak twitch chat download and windows install readme
This commit is contained in:
17
aliases
17
aliases
@@ -495,8 +495,9 @@ actually_dl_twitch_chat() {
|
||||
}
|
||||
|
||||
dl_twitch_chat() {
|
||||
local url="$1"
|
||||
shift 1
|
||||
local make_folder="$1"
|
||||
local url="$2"
|
||||
shift 2
|
||||
local opts="$@"
|
||||
|
||||
if [[ $url == "" ]]; then
|
||||
@@ -504,14 +505,18 @@ dl_twitch_chat() {
|
||||
return
|
||||
fi
|
||||
|
||||
make_vid_dir_and_cd_into $url "" $opts
|
||||
if [[ $? -ne 0 ]]; then
|
||||
return
|
||||
if [[ $make_folder == "1" ]]; then
|
||||
make_vid_dir_and_cd_into $url "" $opts
|
||||
if [[ $? -ne 0 ]]; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
actually_dl_twitch_chat $url "$(yt-dlp.exe --get-filename -o "%(upload_date>%Y-%m-%d)s-%(title)s-tw-%(id)s" $opts $url)"
|
||||
|
||||
cd ..
|
||||
if [[ $make_folder == "1" ]]; then
|
||||
cd ..
|
||||
fi
|
||||
}
|
||||
|
||||
# Download Twitch videos, both VODs and live streams. Pass a Twitch account URL to download a live stream.
|
||||
|
||||
Reference in New Issue
Block a user