automatic youtube uploader pipeline
This is just a personal script to manage some youtube videos. It is assumed that the user has 2 computers on a LAN and wishes to transfer video files from one (A) to the other (B), where files are deleted from A after transfer to B, and deleted from B once upload to youtube is successful.
Most of these should already be present on both systems. It goes without saying that both computers must have access to a unix shell.
gitrsync
flock(used for cron job)gitpython 2/3rsyncyoutube-upload(follow install instructions described there)
May need to install pyside on raspberry pi, which requires some other packages, see this answer: https://stackoverflow.com/a/51273560 and remove any packages from that list that are not found (e.g. E: Unable to locate package qtmobility-dev).
git clone https://github.com/isaacimholt/ayup.git
Make sure to follow youtube-upload setup instructions. All ayup settings are stored in a config.yaml file that you must create. Here is a template:
# config values for sender (send.sh)
sender:
rsync:
source: /folder/with/videos/to/send
destination: my_user@my_other_computer:/folder/on/other/computer
uploader:
youtube:
source: /folder/with/videos/to/uploadtodo
Enter the ayup directory and run git pull
- On Windows startup, run the
send.shscript in WSL. - Cronjob wondershaper
- Cronjob `upload.sh