Initial community commit

This commit is contained in:
Jef 2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit fc06254474
16440 changed files with 4239995 additions and 2 deletions

View file

@ -0,0 +1,45 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: syncbutton.m
Version: 1.0
Type: maki
Date: 25. Jun. 2007 - 14:04
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
---------------------------------------------------*/
#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;
}