first commit

This commit is contained in:
valerio 2017-10-18 23:49:43 +02:00
commit b32fdd20e0
3 changed files with 26 additions and 0 deletions

4
.gitignore vendored Normal file
View File

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

10
fetch.sh Executable file
View File

@ -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 Executable file
View File

@ -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