Adjust temp, input/output paths
This commit is contained in:
parent
5ee1ec38cd
commit
8ee42e7a1c
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
input_directory=/data/music
|
input_directory=/data/music
|
||||||
|
|
||||||
tmp_directory=/data/tmp/transcode
|
input_directory=/data/music/flac
|
||||||
|
|
||||||
|
tmp_directory=/tmp/transcode
|
||||||
lock_file=/tmp/music-transcode.lock
|
lock_file=/tmp/music-transcode.lock
|
||||||
|
|
||||||
function transcode_to_mp3()
|
function transcode_to_mp3()
|
||||||
|
@ -174,8 +176,8 @@ fi
|
||||||
SAVEIFS=$IFS
|
SAVEIFS=$IFS
|
||||||
IFS=$(echo -ne "\n\b")
|
IFS=$(echo -ne "\n\b")
|
||||||
for file in $(find "$input_directory" -name '*.flac' -or -name '*.mp3' | sort); do
|
for file in $(find "$input_directory" -name '*.flac' -or -name '*.mp3' | sort); do
|
||||||
transcode_to_mp3 "$file" "/data/mp3" || break
|
transcode_to_mp3 "$file" "/data/music/mp3" || break
|
||||||
transcode_to_ogg "$file" "/data/ogg" || break
|
transcode_to_ogg "$file" "/data/music/ogg" || break
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Done Transcoding."
|
echo "Done Transcoding."
|
||||||
|
|
Loading…
Reference in a new issue