Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Dynamic Signature, Reading Information from Cuesheet
Aesir
post Sep 4 2006, 03:27 PM
Post #1


Newbie
*

Group: Members
Posts: 1
Joined: 4-September 06
Member No.: 144



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Sep 13 2006, 08:25 PM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
MandhoR
post Sep 23 2006, 11:28 AM
Post #3


Newbie
*

Group: Members
Posts: 1
Joined: 23-September 06
Member No.: 157



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!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: