Browse code

Fixed typo, added url for briefing explanation

Steven Saus authored on 10/01/2019 04:05:02
Showing 1 changed files
... ...
@@ -18,5 +18,5 @@ find ~/podcasts -name '*.mp3' -exec mv {} ~/briefing/$today \;
18 18
 
19 19
 # This does not seem to work with ~/ for $HOME, so I've put the full user
20 20
 # path here.
21
-playlist='/home/user/briefing/play.m3u' ; if [ -f $playlist ]; then rm $playlist ; fi ; for f in /home/steven/briefing/$today/*.mp3; do echo "$f" >> "$playlist"; done
21
+playlist='/home/user/briefing/play.m3u' ; if [ -f $playlist ]; then rm $playlist ; fi ; for f in /home/user/briefing/$today/*.mp3; do echo "$f" >> "$playlist"; done
22 22
 mplayer -playlist "$playlist"
Browse code

Added briefing script

Steven Saus authored on 10/01/2019 03:50:39
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,22 @@
1
+#!/bin/bash
2
+
3
+
4
+/usr/local/bin/podfox -c ~/.podfox.json update
5
+/usr/local/bin/podfox -c ~/.podfox.json download
6
+
7
+today=`date +%Y%m%d`
8
+mkdir -p ~/briefing/$today
9
+
10
+#Uncomment to remove all old briefings
11
+#rm -rf ~/briefing/*
12
+
13
+# Moving podcasts to central directory.
14
+find ~/podcasts -name '*.mp3' -exec mv {} ~/briefing/$today \;
15
+
16
+
17
+#https://askubuntu.com/questions/259726/how-can-i-generate-an-m3u-playlist-from-the-terminal
18
+
19
+# This does not seem to work with ~/ for $HOME, so I've put the full user
20
+# path here.
21
+playlist='/home/user/briefing/play.m3u' ; if [ -f $playlist ]; then rm $playlist ; fi ; for f in /home/steven/briefing/$today/*.mp3; do echo "$f" >> "$playlist"; done
22
+mplayer -playlist "$playlist"