samples updated: http://dl.dropbox.com/u/22801321/samples.zip
musicbrainz releases: entries with no date now appear at end of list instead of the beginning
Nice it's always those little things!
I hope you don't mind, but I added buttons for discogs & allmusic to your 'web links' (if it suits you, feel free to redistribute in your ZIP)
button preview: http://desmond.imageshack.us/Himg195/scale...amp;res=landing
New discogs+allmusic buttons here: http://www.mediafire.com/?kaywlua6nrtritl
also note, the MySpace link has been updated to function correctly
// ==PREPROCESSOR==
// @import "%fb2k_profile_path%marc2003\common4.js"
// @import "%fb2k_profile_path%marc2003\tooltip_buttons.js"
// @name "Web Links"
// @author "marc2003"
// @feature "v1.4"
// @feature "watch-metadb"
// ==/PREPROCESSOR==
var bw = 32;
var bh = 32;
var left_margin = 0;
var top_margin = 0;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var script_name = "Web Links";
var custom_background = window.GetProperty("custom_background", "");
var bg = window.GetProperty("bg", 102);
selection_mode = 1;
on_item_focus_change();
function on_size() {
ww = window.Width;
wh = window.Height;
}
function on_paint(gr) {
buttons_background(gr);
buttonsDraw(gr);
}
function on_playback_new_track() {
on_item_focus_change();
}
function on_metadb_changed() {
if (!g_metadb) return;
var myspace = fb.TitleFormat("http://www.myspace.com/search/music?q=$replace(%artist%, ,)").EvalWithMetadb(g_metadb);
var lastfm = fb.TitleFormat("http://www.last.fm/music/$replace(%artist%, ,+,/,'%'252F,?,'%'3F)/_/$replace(%title%, ,+,/,'%'252F,?,'%'3F)").EvalWithMetadb(g_metadb);
var youtube = fb.TitleFormat("http://www.youtube.com/results?search_query=$replace(%artist%+%title%, ,+,'(',,')',,/,+,&,and)").EvalWithMetadb(g_metadb);
var discogs = fb.TitleFormat("http://www.discogs.com/search?q=$replace(%artist%, ,+,'(',,')',,/,+,&,and)").EvalWithMetadb(g_metadb);
var allmusic = fb.TitleFormat("http://allmusic.com/search/artist/$replace(%artist%, ,+,'(',,')',,/,+,&,and)").EvalWithMetadb(g_metadb);
Buttons = {
but1: new Button(left_margin, top_margin, bw, bh, {normal: images_path + "myspace.png", hover: images_path + "myspace_h.png"}, function() { WshShell.run(myspace); }, myspace),
but2: new Button(left_margin + bw, top_margin, bw, bh, {normal: images_path + "lastfm.png", hover: images_path + "lastfm_h.png"}, function() { WshShell.run(lastfm); }, lastfm),
but3: new Button(left_margin + (bw * 2), top_margin, bw, bh, {normal: images_path + "youtube.png", hover: images_path + "youtube_h.png"}, function() { WshShell.run(youtube); }, youtube),
but4: new Button(left_margin + (bw * 3), top_margin, bw, bh, {normal: images_path + "discogs.png", hover: images_path + "discogs_h.png"}, function() { WshShell.run(discogs); }, discogs),
but5: new Button(left_margin + (bw * 4), top_margin, bw, bh, {normal: images_path + "allmusic.png", hover: images_path + "allmusic_h.png"}, function() { WshShell.run(allmusic); }, allmusic)
}
window.Repaint();
}
function on_mouse_move(x, y) {
buttonsMove(x, y);
}
function on_mouse_lbtn_up(x, y) {
buttonsUp(x, y);
}
function on_mouse_leave() {
buttonsLeave();
}
function on_mouse_rbtn_up(x, y) {
background_menu(x, y);
return true;
}