first commit of existing scripts

This commit is contained in:
Bachir Soussi Chiadmi
2017-03-20 12:17:33 +01:00
commit af6b38f964
12 changed files with 889 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
# http://askubuntu.com/questions/65323/bulk-export-embed-album-art-in-banshee
TPATH="/home/bach/.cache/media-art/"
LIBRARY_PATH="/home/bach/Musique/Library/"
cd $LIBRARY_PATH
for f in *; do
cd "$f"
for al in *; do
THUMB="${TPATH}album-$(echo -ne "$f\t$al" | md5sum | cut -b1-32).jpg"
if [ -e $THUMB ]; then
cp $THUMB "./${al}/cover.jpg"
echo "$LIBRARY_PATH/$f/$al/cover.jpg" >> ~/.bin/coverlog
fi
done
cd ..
done