by kgtm · 10y ago · 0 comments
How i would do it, requiring no user input:
* Designate a hot folder on the NAS, where i put all the videos to be uploaded.
* Establish a list of what has been transferred (nothing initially).
* From the Pi, poll the NAS folder for files that haven't been transferred yet.
* If a file is found, cat file | curl --data-binary @- POST it to YT.
* On success, record the transferred filename.
* Continue polling.
Of course, you can quite easily bolt-on a web interface to this, by exposing some of the steps as API endpoints.
If you don't want to use extra software, a simple cron job running every minute would suffice.