From 2613e883547ea5d2b1c45406dfab3c21cde0da03 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Fri, 26 Jul 2013 13:51:52 +0200 Subject: [PATCH] [fix] remove tracking file --- bin/cronTask.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 bin/cronTask.sh diff --git a/bin/cronTask.sh b/bin/cronTask.sh deleted file mode 100644 index 8c17635..0000000 --- a/bin/cronTask.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash/ -finalDest=/srv/http/sovigall.local/videos/ -tempDest=/srv/http/sovigall.local/tmp/ -threads=3 # nb cpu core - 1 -cd $tempDest - -nbProcessLauch=$(ps -e | grep -v grep | grep youtube-dl | wc -l) - -if [ $nbProcessLauch != 0 ] -then - echo 'bye' - exit -fi - -for file in $tempDest*.hash -do - if [[ -f $file ]]; - then - while read urlHash url destination - do - youtube-dl -R 0 -c --write-thumbnail --write-info-json --recode-video webm --no-check-certificate -f 45/46/37/45/22/44/35/34/5 -o "$urlHash.%(ext)s" "$url" - sleep 5 - if [ ! -f $urlHash.*.part ] - then - rm $file - sleep 1 - mv $urlHash* $finalDest$destination - fi - done < $file - fi -done - - - - -# -rc_lookahead 16 -g 360 -threads 3