From 3d69a63783d2acf125b5047e81794f9650eb06e5 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 4 Jul 2023 22:14:42 +0300 Subject: [PATCH] Updated YouTube (markdown) --- YouTube.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/YouTube.md b/YouTube.md index 326653f..4ba6d51 100644 --- a/YouTube.md +++ b/YouTube.md @@ -117,5 +117,29 @@ Newpipe is an Android app that lets you watch without ads. 5) At toolbar 3-colored ball icon of Video DownloadHelper AddOn, click down arrow button on largest resolution download. It will start downloading video to directory ~/dwhelper +## Downloading smallest video resolution file +``` +#!/usr/bin/env bash +function border () { + local str="$*" # Put all arguments into single string + local len=${#str} + local i + for ((i = 0; i < len + 4; ++i)); do + printf '-' + done + printf '\n| %s |\n' "$str" + for ((i = 0; i < len + 4; ++i)); do + printf '-' + done + echo +} + +clear +border "Internet Video Console" +echo +read -p "Search For: " searchphrase + +yd --ytdl-pref="[height <=? 480]" --sort-by="upload_date" "${searchphrase}" +```