49 lines
1.6 KiB
Bash
49 lines
1.6 KiB
Bash
#!/bin/bash
|
|
|
|
# set your options here:
|
|
# How many Videos do you want to upload in a row
|
|
Episoden='1'
|
|
|
|
# Start with episode number:
|
|
StartCount='16'
|
|
|
|
# Release the video at date (YYYY-MM-DD):
|
|
StartDatum='2017-10-11'
|
|
|
|
|
|
# Video Informations:
|
|
# Replace the XXX with the titel how every episode should be called
|
|
Titel='"XXX'
|
|
# Replace the XXX with the name of the category you want to use
|
|
Kategorie='XXX'
|
|
# Replace the XXX for the Name which playlist should be used
|
|
Playlist='"XXX"'
|
|
# Set the time for the release
|
|
Release='12:00:00.000+02:00'
|
|
# Set the tags you want use for alle the clips. Seperate with ","
|
|
Tags='"XXX,YYY,ZZZ,..."'
|
|
# Set a description for all the clips
|
|
Beschreibung='"South Park Stick of truth lets play"'
|
|
# Replace the XXX how all the files begin
|
|
File='"XXX '
|
|
# Set path where te files are
|
|
Path='/path/to/the/files'
|
|
|
|
# Don't edit anything here
|
|
DayCount='0'
|
|
StopCount=$(expr $StartCount + $Episoden)
|
|
Sichtbarkeit='private'
|
|
|
|
# simple loop script. This part generate a upload.sh for every clip you want to upload to YouTube,
|
|
# then it run the second script and after the upload the scond script will be deleted.
|
|
echo "#!/bin/bash" > upload.sh
|
|
|
|
while [ $StartCount -lt $StopCount ]; do
|
|
echo youtube-upload --title $Titel $StartCount"\"" --category=$Kategorie --playlist=""$Playlist"" --privacy=$Sichtbarkeit --publish-at=$(date +%Y-%m-%d -d "$StartDatum + $DayCount day")T$Release --tags=""$Tags"" --description=""$Beschreibung"" $Path$File $StartCount.mp4"\""
|
|
let StartCount=StartCount+1
|
|
let DayCount=DayCount+1
|
|
done >> upload.sh
|
|
|
|
chmod +x upload.sh
|
|
./upload.sh
|
|
rm upload.sh
|