Alternate Icon with returned text from script

Hi everyone !

I am trying to set up an alternate icon function in a work from vas3k.
I would like to change the icon whether the music is played from Spotify or from Itunes. The main Icon is Spotify and the alternate is Itunes. But I can't find the right place to add the "return" function to get it work. Since I need the returned text to display Title and Album, i don't know how not to show the returned alternate regex.

Spotify icon shown, but music played from Itunes.

Not working script, only Spotify Icon will show up

Thank you for your help !