Skip to content

Instantly share code, notes, and snippets.

@jyt jyt/tv guide
Created Jul 27, 2009

Embed
What would you like to do?
//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
You can’t perform that action at this time.