parent
cc0f55fd03
commit
0780269d77
@ -1,2 +1,8 @@ |
||||
# multiple_scripts |
||||
Multiple scripts that are useful but don't deserve their own repository. |
||||
|
||||
|
||||
# briefing.sh |
||||
|
||||
Used along with Podfox to create a daily briefing without involving |
||||
Google or Amazon or Apple. |
||||
|
@ -0,0 +1,22 @@ |
||||
#!/bin/bash |
||||
|
||||
|
||||
/usr/local/bin/podfox -c ~/.podfox.json update |
||||
/usr/local/bin/podfox -c ~/.podfox.json download |
||||
|
||||
today=`date +%Y%m%d` |
||||
mkdir -p ~/briefing/$today |
||||
|
||||
#Uncomment to remove all old briefings |
||||
#rm -rf ~/briefing/* |
||||
|
||||
# Moving podcasts to central directory. |
||||
find ~/podcasts -name '*.mp3' -exec mv {} ~/briefing/$today \; |
||||
|
||||
|
||||
#https://askubuntu.com/questions/259726/how-can-i-generate-an-m3u-playlist-from-the-terminal |
||||
|
||||
# This does not seem to work with ~/ for $HOME, so I've put the full user |
||||
# path here. |
||||
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 |
||||
mplayer -playlist "$playlist" |
Loading…
Reference in new issue