add files
This commit is contained in:
commit
6f9d31c4d5
3 changed files with 78 additions and 0 deletions
24
LICENSE
Normal file
24
LICENSE
Normal file
|
|
@ -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 <http://unlicense.org>
|
||||||
5
README.md
Normal file
5
README.md
Normal file
|
|
@ -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.
|
||||||
49
upload-script.sh
Normal file
49
upload-script.sh
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue