Add help for .youtube

This commit is contained in:
melonhead 2010-03-05 23:09:36 +00:00
parent 6fe89c873e
commit b7ef6968f7
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ def youtube_url(inp):
@hook.command
def youtube(inp):
'.youtube <query> -- returns the first YouTube search result for <query>'
if not inp:
return youtube.__doc__
inp = quote_plus(inp)
j = json.load(urllib2.urlopen(search_api_url % (inp)))