Skip to content

Instantly share code, notes, and snippets.

@jyt
Created July 27, 2009 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jyt/156397 to your computer and use it in GitHub Desktop.
Save jyt/156397 to your computer and use it in GitHub Desktop.
//This is a ubiquity command
//it will let you search about timing of your favouraite serial,channel or anything realted to idiot box :)
CmdUtils.CreateCommand({
names: ["timing of","info about serial"],
description: "This command will let you search about the timings of your favorite serial ",
help: "To use this command type the name of the serial whose info you wanna get",
author: {name: "Jyoti", email: "mail2jyoti88@gmail.com"},
homepage: "http://jyzyy.blogspot.com/",
arguments: [{role: 'object', label: 'name of serial', nountype: noun_arb_text}],
preview: function preview(pblock, args) {
pblock.innerHTML = "show the timings of <b>" + args.object.html + "</b> .";
},
execute: function(args)
{
if(args.object.text=="")
{
displayMessage("Specify the name of a tv show");
return;
}
else
{
Utils.openUrlInBrowser("http://tv.burrp.com/search.html?q="+args.object.text)
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment