more fixes
This commit is contained in:
parent
90401b3819
commit
9b10d35eb6
5
check.sh
5
check.sh
@ -15,11 +15,12 @@ source $full_path/config_list.sh
|
|||||||
|
|
||||||
#exit if no stream
|
#exit if no stream
|
||||||
$full_path/lifeChk.py $1 || exit 0
|
$full_path/lifeChk.py $1 || exit 0
|
||||||
echo `$full_path/lifeChk.py $1`
|
# echo `$full_path/lifeChk.py $1`
|
||||||
|
|
||||||
#set pid and start downloading
|
#set pid and start downloading
|
||||||
|
echo $! > $storage_path/$1/pid
|
||||||
|
/home/losted/.local/bin/youtube-dl -v -o $storage_path/$1/"%(upload_date)s_%(title)s__%(timestamp)s_%(id)s.%(ext)s" twitch.tv/$1 >> $storage_path/$1/youtube-dl.log 2>&1
|
||||||
|
|
||||||
nohup /home/losted/.local/bin/youtube-dl -v -o $storage_path/$1/"%(upload_date)s_%(title)s__%(timestamp)s_%(id)s.%(ext)s" twitch.tv/$1 >> $storage_path/$1/youtube-dl.log 2>&1 & echo $! > $storage_path/$1/pid
|
|
||||||
|
|
||||||
#remove pid
|
#remove pid
|
||||||
|
|
||||||
|
2
cron.sh
2
cron.sh
@ -12,7 +12,7 @@ for i in $list; do
|
|||||||
[ ! -d $storage_path/$i ] && mkdir -p $storage_path/$i && echo "Created dir $storage_path/$i"
|
[ ! -d $storage_path/$i ] && mkdir -p $storage_path/$i && echo "Created dir $storage_path/$i"
|
||||||
|
|
||||||
#detached check & start
|
#detached check & start
|
||||||
bash $full_path/check.sh $i
|
nohup bash $full_path/check.sh $i &>> $storage_path/$1/youtube-dl.log &
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user