From 993425d20501c14147563339836d0e45d8df6e8c Mon Sep 17 00:00:00 2001 From: josuah Date: Fri, 23 Dec 2016 19:35:58 +0000 Subject: [PATCH] tested and fixed my changes --- shelltube | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shelltube b/shelltube index 7f1a822..7db5367 100755 --- a/shelltube +++ b/shelltube @@ -87,7 +87,7 @@ parse() { chan ) channel "$argument" ;; - video | sel | url | metadata | md ) + video | sel | url ) case "$argument" in *youtube.com* ) selected_video="$argument" @@ -98,10 +98,16 @@ parse() { esac yt-meta "$selected_video" ;; + metadata | md ) + selected_video="${argument:-$selected_video}" + yt-meta "$selected_video" + ;; download | dl ) + selected_video="${argument:-$selected_video}" yt-down "$selected_video" ;; stream | str ) + selected_video="${argument:-$selected_video}" yt-down -s "$selected_video" ;; about | ! )