tube - Youtube URL Extractor
tube is a Python script for extracting video metadata (I.E. the actual video stream URL) from an arbitrary Youtube (youtube.com, youtu.be) URL and then launch a player of choice (such as MPV or VLC) to watch the video.
Together with tubeshell, a small bash script providing a readline-style shell for tube, it is an easy way of watching videos and handling tube's built-in history function, which stores previously watched videos.
tube has been developed on and for Linux, but will probably work on other Unix-like systems as well. tube and tubeshell are both released under the MIT license. tube requires Python 3.5 to work and is linted with these settings. tubeshell is linted with shellcheck.
I surprised myself greatly with this little piece of software: since I wrote it, I have been using it every day, adding features and polishing the existing ones to my suit my personal preference. Perhaps someone else will find it useful, too.
The latest release is v1.0.13 (2020-05-06)
Example tubeshell session.