Page 1 of 1

[SOLVED]Android App and Album Art.

PostPosted: Wed Jun 01, 2011 11:49 am
by lazarost
Hi to everyone,

I just recently started using Subsonic and loving it so far. Already donated as well, because the potentials for this program are limitless.

Now to my problem.

Although Album Art is displaying fine on both the server and the android app, it seems that the android app insists on downloading that .jpg and renaming it to folder.jpeg although the album art on all my albums, which resides in the directory of each album, is named AlbumArt.jpg .

That creates a few issues with the new Google Music App, where it's a gamble if ιt will pickup the album art or not (probably has something to do with spaces on directory names) and also I'd like to have the albums appear on the native app but not the album art on the gallery app.

I understand that most people do have the need for folder.jpeg for their Windows machines, but the default for Android is indeed AlbumArt.jpg .

Although I could embed all the jpgs into APIC tags and delete the .jpgs from each directory after that, which would ensure that the native app picks up the correct album art, but all of that seems counter intuitive and time consuming.

So is there an option somewhere that I can force the android client into saving the album art into AlbumArt.jpg ?

PostPosted: Thu Jun 02, 2011 11:23 am
by lazarost
Although clearly there has to be a better way for what I wanted to do, I came up with a solution that works for me.

First I had to put all the album covers into every single mp3 of my collection.
Mind that I use linux, so I really don't know how this is supposed to go for windows.
Code: Select all
find . -name *.mp3 -execdir eyeD3 --no-tagging-time-frame --add-image=AlbumArt.jpg:FRONT_COVER '{}' \;

Basically this command finds every single mp3 from the various subdirectories, and then executes eyeD3 (a command line mp3 editor) for each one, looking for AlbumArt.jpg from the current subdirectory to embed as front cover into every mp3 file.

After that was finished (it took some time), then I had to make a script for my android phone and tablet.
Code: Select all
#!/bin/sh
find /sdcard/subsonic/music -iname "folder.jpeg*" | while read f; do mv  "$f" "`dirname "$f"`"/AlbumArt.jpg; done


I saved it to the sdcard as covers.sh and chmod 700 . Then you can execute it as:
Code: Select all
sh covers.sh


All that it does is to look for folder.jpeg files into the /sdcard/subsonic/music subdirectories and renaming each one to AlbumArt.jpg

That way, all my albums now display correct covers when viewed through the native music app (cause of the APIC tag) and also the Gallery app no longer displays a myriad of album covers.

Hope this helps somebody else as well.