Created
November 5, 2009 10:19
-
-
Save denzuko/226968 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Last.fm for Ubiquity | |
//This script takes your input and opens the url http://www.last.fm/listen/artist/{input}/similarartists | |
//Thus tuning in to the desired last.fm station | |
CmdUtils.CreateCommand({ | |
name:"lastfm", | |
description: "Tunes into the desired last.fm station!", | |
icon:"http://firefm.sourceforge.net/favicon.ico", | |
takes: {artist: noun_arb_text}, | |
preview: "Starts last.fm with the specified artist!", | |
execute: function(artist) { | |
var url = "http://www.last.fm/listen/artist/{QUERY}/similarartists" | |
var query = artist.text; | |
var urlString = url.replace( "{QUERY}", query); | |
Utils.openUrlInBrowser(urlString); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment