diff --git a/plugins/youtube.py b/plugins/youtube.py index 1e7da2b..92591ee 100644 --- a/plugins/youtube.py +++ b/plugins/youtube.py @@ -65,6 +65,9 @@ def youtube_url(inp): @hook.command def youtube(inp): '.youtube -- returns the first YouTube search result for ' + if not inp: + return youtube.__doc__ + inp = quote_plus(inp) j = json.load(urllib2.urlopen(search_api_url % (inp)))