Merge pull request #133 from blha303/patch-6

thanks :)
This commit is contained in:
Luke Rogers 2013-09-03 04:42:48 -07:00
commit 6a325b5333

View file

@ -15,6 +15,7 @@ def hulu_url(match):
@hook.command('hulu')
def hulu_search(inp):
"""hulu <search> - Search Hulu"""
result = http.get_soup("http://m.hulu.com/search?dp_identifier=hulu&{}&items_per_page=1&page=1".format(urlencode({'query': inp})))
data = result.find('results').find('videos').find('video')
showname = data.find('show').find('name').text