added naming options for playlists
This commit is contained in:
+12
-2
@@ -7,10 +7,10 @@ BASEDIR="/media/sansa"
|
|||||||
DATE=`date +%m%d`
|
DATE=`date +%m%d`
|
||||||
LISTNAME="podcast-${DATE}"
|
LISTNAME="podcast-${DATE}"
|
||||||
AUDIODIR="${LISTNAME}"
|
AUDIODIR="${LISTNAME}"
|
||||||
TMPFILE="/tmp/podcast-${DATE}.tmp"
|
TMPFILE="/tmp/playlist.tmp"
|
||||||
|
|
||||||
#set debug mode and create some dirs in /tmp
|
#set debug mode and create some dirs in /tmp
|
||||||
#for testing and/or debugging
|
#for testing and/or debugging.
|
||||||
if [[ $1 == "debug" ]]
|
if [[ $1 == "debug" ]]
|
||||||
then
|
then
|
||||||
BASEDIR="/tmp${BASEDIR}"
|
BASEDIR="/tmp${BASEDIR}"
|
||||||
@@ -26,6 +26,16 @@ then
|
|||||||
echo "$1"
|
echo "$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#check for options from cmd ln
|
||||||
|
if [[ -n $1 ]]
|
||||||
|
then
|
||||||
|
LISTNAME=$1
|
||||||
|
fi
|
||||||
|
if [[ -n $2 ]]
|
||||||
|
then
|
||||||
|
AUDIODIR=$2
|
||||||
|
fi
|
||||||
|
|
||||||
#mk tmp playlist
|
#mk tmp playlist
|
||||||
echo "PLP PLAYLIST" > ${TMPFILE}
|
echo "PLP PLAYLIST" > ${TMPFILE}
|
||||||
echo "VERSION 1.20" >> ${TMPFILE}
|
echo "VERSION 1.20" >> ${TMPFILE}
|
||||||
|
|||||||
Reference in New Issue
Block a user