Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Auto-Replace "&" in "and"
kugelrund
post Jul 26 2006, 12:55 PM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 26-July 06
Member No.: 110



Hi All,

first thanks for this nice tool - it works very good.

I export the Songinfo in a "musicinfo.txt" file - it works well
than i want to import the "musicinfo.txt" in a SWF file - it works too but makes problems with some text.

For Example:
in the musicinfo.txt = "Mike & Mechanics - Wonderfull"

But the SWF just shows me "Mike " and nothing more

Is it possible to replace all the "&" with "and" to bcome the right info in the swf like "Mike and Mechanics - Wonderfull"

Thanks from Austria

Robert
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jul 26 2006, 03:05 PM
Post #2


AMIP Developer
***

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



Looks like the problem is caused not by &, but by space, you can try using urlencode function ($ue), refer to AMIP help for details.

If the problem is caused by &, then you can replace it with "and" using:
CODE
$strrep(search,replace,subject)
Returns a string with all occurrences of search in subject replaced with the given replace value


It's also described in AMIP help.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
kugelrund
post Jul 26 2006, 04:06 PM
Post #3


Newbie
*

Group: Members
Posts: 2
Joined: 26-July 06
Member No.: 110



Hi Serge, this one works biggrin.gif
CODE
$strrep(&,and,%name)


Thank you very much!!!!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
glennallen
post Sep 23 2007, 12:19 PM
Post #4


Newbie
*

Group: Members
Posts: 4
Joined: 12-March 07
Member No.: 255



Just an FYI...

I just finished installing latest Skype with latest AMIP (to work with latest foobar2000). All works fine except for one situation: when the artist name (and/or, I suppose, a track name, too) contains an ampersand (&), which isn't that unusual of an occurrence. The %name info would display on the Skype status bar but not in the mood area (the box below the status bar which opens/closes (toggles) when you click on it). (It will show up if I click in the mood area, but that's not something I would typically want to do. Basically, it looks like Skype is waiting for something further if it sees an '&', so not a "problem" with AMIP but with Skype. biggrin.gif )

After updating the format to auto-replace '&' with 'and' as specified above, it works fine.

Cool beans!
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: