Browse code

test Umgebung entfernt

Stefan authored on22/10/2017 15:55:59
Showing1 changed files

... ...
@@ -1,13 +1,13 @@
1 1
 #! /bin/bash
2 2
 #This Bash-script should be executed every day (crontab -e) 
3 3
 
4
-#update youtube-dl
5
-#youtube-dl -U
6
-#sleep 5
4
+update youtube-dl
5
+youtube-dl -U
6
+sleep 5
7 7
 # fav dir
8 8
 # put in your favorite path
9 9
 favdir="auto-yt"
10
-echo $favdir
10
+#echo $favdir
11 11
 #Date= yesterday
12 12
 datum=$(date -d "1 day ago" '+%Y%m%d')
13 13
 
... ...
@@ -27,7 +27,6 @@ cd ~/.mozilla/firefox/*default*
27 27
 #save all your Youtube playlists in auto-yt
28 28
 dbarray=( $(sqlite3 -list places.sqlite 'select url from moz_places where id in (select fk from moz_bookmarks where parent in ( select "id" from moz_bookmarks where title == "'$favdir'"))'; ))
29 29
 #switch  to your youtube download folder
30
-echo $favdir
31 30
 cd ~/Downloads
32 31
 #let youtube-dl do the work  and download brandnew videos
33 32
 for i in ${dbarray[@]}; do