commit 6f9d31c4d59407d48335ea410fa2ae76192bda57 Author: elektroll Date: Sat Jun 23 11:06:18 2018 +0200 add files diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..cf1ab25 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README.md b/README.md new file mode 100644 index 0000000..d0b20b9 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# auto-youtube-upload-script +A bash script for [youtube-upload](https://github.com/tokland/youtube-upload) (you need first to install youtube-upload and configure), to upload a lot of numberical video clips to YouTube. +For example you are a Let's Player and on your HDD you have 20 clips you want to release daily. With this script you can set it to +upload all the 20 clips with the same name but with a different episode number, and same description, settings,... +After you set your option in this script, you have just to run it, then all clips will be released day after day. diff --git a/upload-script.sh b/upload-script.sh new file mode 100644 index 0000000..23e44d1 --- /dev/null +++ b/upload-script.sh @@ -0,0 +1,49 @@ +#!/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