Posted by: Aesir Sep 4 2006, 03:27 PM
Hello,
I've installed and configed AMIP and the dynamic signature package. Everything is working fine with mp3's BUT I dont know, how it works with information from image + cuesheet. I've managed to let it show Artist and Title but I dont know, how I get the Album Title and Date Information working.
Is there a way to make it compatible with cuesheet's tags? TiA and keep up that good work.
Aesir
Posted by: Serge Sep 13 2006, 08:25 PM
No, AMIP can't read such info. As a workaround you can configure your player to show this info in the title, then in AMIP pass %s variable to the signature. You may need to modify the php script to parse %s and extract album/artist/title from it.
Posted by: MandhoR Sep 23 2006, 11:28 AM
QUOTE(Serge @ Sep 13 2006, 10:25 PM)
No, AMIP can't read such info. As a workaround you can configure your player to show this info in the title, then in AMIP pass %s variable to the signature. You may need to modify the php script to parse %s and extract album/artist/title from it.
Or something like that (in foobar):
In field AMIP Title format:
CODE
%artist% - $if(%title%,%title%,%_filename%) '|' %album%
In signature.php file you must find and correct these lines:
CODE
$song = $SONG['title'];
replace with:
CODE
$piosenka = explode('|',$SONG['title']);
$song = $piosenka[0];
and later you should correct very similar lines to this:
CODE
if(strlen($SONG['album'])>0) {
$alb = "\"$SONG[album]\"";
if(strlen($SONG['year'])>0) {
$alb .= " $SONG[year]";
}
} else {
if(strlen($piosenka[1])>0) {
$alb = $piosenka[1];
}
else {
$alb = "(Unknown album)";
}
}
Hope it helps if you are not familiar with php!