Browse Source

first commit

master
valerio 5 years ago
commit
b32fdd20e0
  1. 4
      .gitignore
  2. 10
      fetch.sh
  3. 12
      status.sh

4
.gitignore

@ -0,0 +1,4 @@
*mp4
*mp4*
*.swp

10
fetch.sh

@ -0,0 +1,10 @@
#/bin/bash
for season in $(seq 1 3); do for episode in $(seq 1 11)
do
as='curl -m 0 -s http://watchseries.do/series/rick-and-morty/season/'$season'/episode/'$episode' | grep player | grep estream | cut -d "\"" --fields=4 | xargs -t curl | grep mp4 | cut -d \" -f 2'
# as='https://it.wikipedia.org/wiki/'$season''$episode
wget $(eval $as) -o "s"$season"e"$episode".mp4"
done;done

12
status.sh

@ -0,0 +1,12 @@
#/bin/sh
#while true; do
files="$(ls -lah | grep 's[1-9]*e[1-9]*\.mp4' | cut -d' ' -f10,6)"
#files="$(ls -lah | awk '/s[1-9]\*e[1-9]\*\.mp4/{print $10}')"
printf "%s\n\n" "$files"
sleep 1
#done
exec ./status.sh
Loading…
Cancel
Save