         if res.statusCode is 200 and !err?
           parser = new xml2js.Parser()
           parser.parseString body, (err, result) ->
-            if result.show?
+            if result.Results and (result = result.Results).show?
               if result.show.length?
                 show = result.show[0]
               else

            else
              msg.reply "I couldn't find TV show " + msg.match[1]
        else
            msg.reply "Sorry, there was an error looking up your show"

xml2js = require "xml2js"
module.exports = (robot) ->
  robot.respond /tvshow(?: me)? (.*)/i, (msg) ->
