The first time this runs, it’ll ask for details, but after that it should just upload your video.

The information it needs is dumped into a file, to be sourced later, so if you want to change a variable, you can just remove that line of the file (pt_info.txt), and it’ll ask for it again.

A few notes:

  • The name of the file becomes the title of the video.
  • You need a second argument, which is the video’s description.
  • You’ll need fuzzy-finder (fzy) so it can let you select things.
  • If you don’t have pass installed, it’ll store your password in plain text.
  • If you do have pass installed, it’ll remember what your passwords name is, and just use that.
  • It only takes 1 category (‘education’, ‘sports’, et c.), so all subsequent videos will have the same category unless you change that.
  • The default licence is CC0. (fuck copyright)

Example:

./ptup.sh myVideo.mp4 “This is my description of my video.”

It’s only been tested once, so I’d give it a 50/50 chance of working.