- Add all the existing files.
This commit is contained in:
24
bin/album_seekpoint
Executable file
24
bin/album_seekpoint
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$1" == "-h" ]]
|
||||
then
|
||||
echo "album_seekpoint [-h] | <source_dir> <target_dir> <seek_point_delay>"
|
||||
exit
|
||||
fi
|
||||
|
||||
source_dir="$1"
|
||||
target_dir="$2"
|
||||
seek_point_delay="$3"
|
||||
|
||||
for file in ${source_dir}/*.flac
|
||||
do
|
||||
target_file="${target_dir}/$(basename $file)"
|
||||
|
||||
if [[ "${file}" != "${target_file}" ]]
|
||||
then
|
||||
cp "${file}" "${target_file}"
|
||||
fi
|
||||
|
||||
metaflac --remove --block-type=SEEKTABLE "${target_file}"
|
||||
metaflac --add-seekpoint "${seek_point_delay}"s "${target_file}"
|
||||
done
|
||||
Reference in New Issue
Block a user