diff --git a/scripts/server_bin/twitch_fullArchive.sh b/scripts/server_bin/twitch_fullArchive.sh new file mode 100755 index 0000000..39be0b5 --- /dev/null +++ b/scripts/server_bin/twitch_fullArchive.sh @@ -0,0 +1,25 @@ +#!/bin/bash +if [[ -z "$2" ]]; then + echo "please provide both parameters" + exit 1 +fi +while getopts u:f: flag +do + case "${flag}" in + u) username=${OPTARG};; + f) format=${OPTARG};; + h) help(); exit;; + esac +done + +cd /home/stev/Videos/Twitch/$username +yt-dlp -q -f $format "https://www.twitch.tv/$username/videos?filter=archives&sort=time" + + +help() +{ + echo "Download all the past broadcasts from a twitch user" + echo "Requires 2 Parameters:" + echo " -u the username of the twitch user" + echo " -f the encoding format for the videos, which are fed to yt-dlp" +} diff --git a/scripts/server_bin/twitch_kody.sh b/scripts/server_bin/twitch_kody.sh deleted file mode 100755 index f67a8d2..0000000 --- a/scripts/server_bin/twitch_kody.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -cd /home/stev/Videos/Twitch/Kodykins -yt-dlp -q -f 720p60 https://www.twitch.tv/curlykody/videos diff --git a/scripts/server_bin/twitch_spacey.sh b/scripts/server_bin/twitch_spacey.sh deleted file mode 100755 index 0f0eb0e..0000000 --- a/scripts/server_bin/twitch_spacey.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -cd /home/stev/Videos/Twitch/spaceyeen -yt-dlp -q -f 720p60 https://www.twitch.tv/spaceyeen/videos