- Add all the existing files.
This commit is contained in:
21
bin/album_rename
Executable file
21
bin/album_rename
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$1" == "-h" ]]
|
||||
then
|
||||
echo "album_rename [-h] | <source_dir> <target_dir> <album_name>"
|
||||
exit
|
||||
fi
|
||||
|
||||
source_dir="$1"
|
||||
target_dir="$2"
|
||||
album_name="$3"
|
||||
|
||||
for file in ${source_dir}/*.flac
|
||||
do
|
||||
target_file="${target_dir}/$(basename $file)"
|
||||
|
||||
cp "${file}" "${target_file}"
|
||||
metaflac --remove-tag=ALBUM --set-tag="ALBUM=${album_name}" "${target_file}"
|
||||
|
||||
i=$(($i+1))
|
||||
done
|
||||
Reference in New Issue
Block a user