Added support for looping and watching related videos

master
silverwizard 2 years ago
parent e8f6b459ed
commit 7e5896e1e3
  1. 3
      ytloop.sh
  2. 4
      ytrelated.sh
  3. 2
      ytscroll.sh
  4. 2
      ytsearch.sh

@ -0,0 +1,3 @@
VID=$1
vlc $VID
./ytscroll.sh `./ytrelated.sh $VID`

@ -0,0 +1,4 @@
for video in `curl $1|tr '"' '\n'|grep '^/watch?'|cut -d'\' -f1|sort -u`
do
./ytmeta.sh https://www.youtube.com$video
done|./ytlist.sh

@ -0,0 +1,2 @@
VID=`./ytsearch.sh $@`
vlc $VID && ./ytloop.sh $VID

@ -1,2 +1,2 @@
for vid in `curl https://www.youtube.com/results?search_query=$(echo $@|tr ' ' '+')|tr '"' '\n'|grep 'watch?'|cut -d '\' -f1|sort|uniq`; do ./ytmeta.sh youtube.com$vid ; done|./ytlist.sh ^C
for vid in `curl https://www.youtube.com/results?search_query=$(echo $@|tr ' ' '+')|tr '"' '\n'|grep '^/watch?'|cut -d '\' -f1|sort|uniq`; do ./ytmeta.sh youtube.com$vid ; done|./ytlist.sh

Loading…
Cancel
Save