aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/single2folder
blob: b3b2d30317bc5b4f99544117ddb97d62268e808a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
file=$1
foldername=$(basename "$file" .flac)

echo "mkdir \"$foldername\""
mkdir "$foldername"

echo "mv \"$file\" \"$foldername\""
mv "$file" "$foldername"

echo "extract folder.png"
metaflac --export-picture-to="${foldername}/folder.png" "${foldername}/${file}"

echo "make sure folder.png is a png"
magick "${foldername}/folder.png" "${foldername}/folder.png"