From b32fdd20e0b96ed53fb39204f79f94b414e75c30 Mon Sep 17 00:00:00 2001 From: valerio Date: Wed, 18 Oct 2017 23:49:43 +0200 Subject: [PATCH] first commit --- .gitignore | 4 ++++ fetch.sh | 10 ++++++++++ status.sh | 12 ++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100755 fetch.sh create mode 100755 status.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f933d52 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*mp4 +*mp4* +*.swp + diff --git a/fetch.sh b/fetch.sh new file mode 100755 index 0000000..b268629 --- /dev/null +++ b/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 diff --git a/status.sh b/status.sh new file mode 100755 index 0000000..4d0a3e7 --- /dev/null +++ b/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 +