From cc40d164798dedf1be6db54f469a4428b622c36a Mon Sep 17 00:00:00 2001 From: silverwizard Date: Fri, 5 Aug 2022 12:39:32 -0400 Subject: [PATCH] Added tools for automatically passing to vlc and looping --- ytloop.sh | 6 +++++- ytscroll.sh | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ytloop.sh b/ytloop.sh index 870e7e2..8ec2161 100755 --- a/ytloop.sh +++ b/ytloop.sh @@ -1,3 +1,7 @@ VID=$1 +if [ -z $VID ] +then + exit +fi vlc $VID -./ytscroll.sh `./ytrelated.sh $VID` +./ytloop.sh `./ytrelated.sh $VID` diff --git a/ytscroll.sh b/ytscroll.sh index 03de32d..1f6c203 100755 --- a/ytscroll.sh +++ b/ytscroll.sh @@ -1,2 +1,3 @@ VID=`./ytsearch.sh $@` -vlc $VID && ./ytloop.sh $VID +vlc $VID +./ytloop.sh `./ytrelated.sh $VID`