123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #include <lib/std.mi>
- Function String getArtist ();
- Global Button nowplaying;
- System.onScriptLoaded ()
- {
- nowplaying = getScriptGroup().getObject("nowplaying");
- }
- nowplaying.onLeftClick ()
- {
- String artist = getArtist();
- if (artist == "") return;
- String icid = "winshadeiconmodern";
- System.navigateUrlBrowser("http://client.winamp.com/nowplaying/artist/?icid="+ icid +"&artistName=" + artist);
- }
- String getArtist ()
- {
- String artist = getPlayItemMetaDataString("artist");
- if (artist == "") artist = getPlayItemMetaDataString("uvox/artist");
- if (artist == "") artist = getPlayItemMetaDataString("cbs/artist");
- if (artist == "") artist = getPlayItemMetaDataString("streamtitle");
- if (artist == "") artist = getPlayItemDisplayTitle();
-
- return artist;
- }
|