Handle .png covers as well
This commit is contained in:
parent
5d9b182dbf
commit
76f6b13e8d
@ -20,14 +20,16 @@ while read -r artdir; do
|
|||||||
# create directory in music
|
# create directory in music
|
||||||
mkdir -p "$HOME/Musik/${artdir}/$dir"
|
mkdir -p "$HOME/Musik/${artdir}/$dir"
|
||||||
|
|
||||||
# link cover.jpg
|
# link cover image (jpg or png)
|
||||||
if [[ -f cover.jpg ]]; then
|
if [ -f cover.jpg ]; then
|
||||||
ln -vf "$HOME/Nextcloud/MusikRaw/${artdir}/$dir/cover."* "$HOME/Musik/${artdir}/$dir/"
|
ln -vf "$HOME/Nextcloud/MusikRaw/${artdir}/$dir/cover.jpg" "$HOME/Musik/${artdir}/$dir/"
|
||||||
|
elif [ -f cover.png ]; then
|
||||||
|
ln -vf "$HOME/Nextcloud/MusikRaw/${artdir}/$dir/cover.png" "$HOME/Musik/${artdir}/$dir/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make symbolic link to music
|
# make symbolic link to music
|
||||||
# if the "normalized" directory exists, links are created
|
# if the "normalized" directory exists, links are created
|
||||||
if [[ -d "normalized" ]]; then
|
if [ -d "normalized" ]; then
|
||||||
ln -svf "$HOME/Nextcloud/MusikRaw/${artdir}/$dir/normalized/"* "$HOME/Musik/${artdir}/$dir/"
|
ln -svf "$HOME/Nextcloud/MusikRaw/${artdir}/$dir/normalized/"* "$HOME/Musik/${artdir}/$dir/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user